Open liyuzhi opened 7 years ago
我也报这个错了,是因为不支持windows吗?
不是不支持windows,是工程目录名称不能出现中划线
还是不行
17 error Windows_NT 10.0.15063
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "init"
19 error node v7.1.0
20 error npm v3.10.9
21 error code ELIFECYCLE
22 error internetMgForZJ@1.0.0 init: webpack --progress --config webpack.dev.config.js
22 error Exit status 1
23 error Failed at the internetMgForZJ@1.0.0 init script 'webpack --progress --config webpack.dev.config.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the internetMgForZJ package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error webpack --progress --config webpack.dev.config.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs internetMgForZJ
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls internetMgForZJ
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
不是不支持windows,是工程目录名称不能出现中划线 (这哥们不懂)
D:\www\iview-project>npm run init
58% 13/16 build modulesContainer#eachAtRule is deprecated. Use Container#walkAt Rules instead. Container#eachRule is deprecated. Use Container#walkRules instead. Container#eachDecl is deprecated. Use Container#walkDecls instead. Node#style() is deprecated. Use Node#raw() Container#remove is deprecated. Use Container#removeChild Node#_value was deprecated. Use Node#raws.value
npm ERR! Windows_NT 6.1.7600 npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run" "init" npm ERR! node v6.2.0 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE npm ERR! iview-project@1.0.2 init:
webpack --progress --config webpack.dev.conf ig.js
npm ERR! Exit status 3221225501 npm ERR! npm ERR! Failed at the iview-project@1.0.2 init script 'webpack --progress --con fig webpack.dev.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 iview-project package , npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack --progress --config webpack.dev.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs iview-project npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls iview-project npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! D:\www\iview-project\npm-debug.log