npm ERR! argv "node.exe" "npm-cli.js""run" "web"
来源:1-2 项目介绍与开发计划
大苗子
2017-06-16
运行react-native-web-webpack项目
项目地址:https://github.com/ndbroadbent/react-native-web-webpack
我 react-native run-android 可以成功跑起来并且运行在安卓模拟器上,
但是npm run web 执行后,就报错了。
这么看会是哪里出原因了?需要怎么解决呢?
错误详情如下:
error detail: 24532@DESKTOP-DFF9VKV MINGW64 /e/rn4web/rn4web-webpack (master) $ npm run web > ExampleApp@0.0.1 web E:\rn4web\rn4web-webpack > [ -d web/vendor-dev ] || npm run web:build:vendor-dev && NODE_ENV=development webpack-dev-server -d --host 0.0.0.0 --port 3000 --config web/webpack.config.js --inline --hot --colors > ExampleApp@0.0.1 web:build:vendor-dev E:\rn4web\rn4web-webpack > rm -rf web/vendor-dev; NODE_ENV=development webpack --config web/vendor.webpack.config.js || rm -rf web/vendor-dev rm: unknown option -- config Try 'rm --help' for more information. 'NODE_ENV' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒ ▒▒▒▒▒▒▒▒▒ļ▒▒▒ npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "web" npm ERR! node v6.9.2 npm ERR! npm v3.10.9 npm ERR! code ELIFECYCLE npm ERR! ExampleApp@0.0.1 web: `[ -d web/vendor-dev ] || npm run web:build:vendor-dev && NODE_ENV=development webpack-dev-server -d --host 0.0.0.0 --port 3000 --config web/webpack.config.js --inline --hot --colors` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ExampleApp@0.0.1 web script '[ -d web/vendor-dev ] || npm run web:build:vendor-dev && NODE_ENV=development webpack-dev-server -d --host 0.0.0.0 --port 3000 --config web/webpack.config.js --inline --hot --colors'. 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 ExampleApp package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! [ -d web/vendor-dev ] || npm run web:build:vendor-dev && NODE_ENV=development webpack-dev-server -d --host 0.0.0.0 --port 3000 --config web/webpack.config.js --inline --hot --colors npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ExampleApp npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls ExampleApp npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! E:\rn4web\rn4web-webpack\npm-debug.log
写回答
1回答
-
CrazyCodeBoy
2017-06-19
从错误提示上看是缺少相应命令报错,看react-native-web-webpack所需要的一些环境和工具有没有都配置好呢
012017-06-19
相似问题