Skip to content

运行报错 #3

@lcGit0615

Description

@lcGit0615

当运行npm run init命令时,报如下错误:

[email protected] init D:\vue\wh-web
webpack --progress --config webpack.dev.config.js

0% compilingfs.js:157
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:157:9)
at Object.fs.write (fs.js:674:14)
at D:\vue\wh-web\webpack.dev.config.js:10:8
at FSReqWrap.oncomplete (fs.js:169:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] init: webpack --progress --config webpack.dev.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\刘超\AppData\Roaming\npm-cache_logs\2018-05-30T06_40_55_041Z-debug.log

这是什么原因??????????????

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions