我将webpack-simple
模板与 vue-cli 一起使用,但是在安装后,当我尝试
npm运行服务
此错误代码存在。
C:\Users\Utku\Desktop\workarea\vuejs\vue-cli-intro\node_modules\depd\index.js:399
throw new TypeError('argument fn must be a function')
^
TypeError: argument fn must be a function
at Function.wrapfunction [as function] (C:\Users\Utku\Desktop\workarea\vuejs\vue-cli-intro\node_modules\depd\index.js:399:11)
at populateConstructorExports (C:\Users\Utku\Desktop\workarea\vuejs\vue-cli-intro\node_modules\http-errors\index.js:264:45)
at Object.<anonymous> (C:\Users\Utku\Desktop\workarea\vuejs\vue-cli-intro\node_modules\http-errors\index.js:30:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:643:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (C:\Users\Utku\Desktop\workarea\vuejs\vue-cli-intro\node_modules\send\index.js:15:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-cli-intro@1.0.0 dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-cli-intro@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
``
答案 0 :(得分:0)
8-.
答案 1 :(得分:0)
我解决了卸载nodejs并重新安装最新稳定版本的问题。