iview-project icon indicating copy to clipboard operation
iview-project copied to clipboard

npm run init报错

Open liyuzhi opened this issue 7 years ago • 4 comments

D:\www\iview-project>npm run init

[email protected] init D:\www\iview-project webpack --progress --config webpack.dev.config.js

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! [email protected] init: webpack --progress --config webpack.dev.conf ig.js npm ERR! Exit status 3221225501 npm ERR! npm ERR! Failed at the [email protected] 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

liyuzhi avatar Dec 20 '16 06:12 liyuzhi

我也报这个错了,是因为不支持windows吗?

go2feel avatar Feb 22 '17 05:02 go2feel

不是不支持windows,是工程目录名称不能出现中划线

vk-zhangkf avatar Feb 25 '17 07:02 vk-zhangkf

还是不行

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 [email protected] init: webpack --progress --config webpack.dev.config.js 22 error Exit status 1 23 error Failed at the [email protected] 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 ]

kiddkyd2 avatar May 23 '17 03:05 kiddkyd2

不是不支持windows,是工程目录名称不能出现中划线 (这哥们不懂)

xuyaokun-github avatar May 13 '21 01:05 xuyaokun-github