对于windows10用户 npm 错误解决方案

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "watch"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ watch script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\PhpStudy\WWW\phpjr\npm-debug.log

这个是错误信息,如果有想错误的人可以看下...我用cnpm重新cnpm install,这个问题就搞定了...

https://github.com/cnpm/cnpm

// 在项目根目录先执行这段代码
npm install -g cnpm --registry=https://registry.npm.taobao.org
// 然后再执行这段代码
cnpm install

OK,我们可以愉快的尝试L5.4的mix了...

kenuo
修改的评论也不能少于六个字哦!
假如_丶 回复 kenuo
修改的评论也不能少于六个字哦!
kenuo 回复 假如_丶
修改的评论也不能少于六个字哦!