首页 新闻 会员 周边 捐助

我想问下这个问题怎么解决,谢谢!

0
悬赏园豆:10 [已解决问题] 解决于 2017-05-03 10:45

在webstorm中,我编译没有成功,想问下这大概是什么原因

/opt/local/node/bin/node /opt/local/node/lib/node_modules/npm/bin/npm-cli.js run dev
npm WARN lifecycle npm is using /opt/local/node/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> credit-system-frontend@0.0.1 dev /home/hldev/hldata/frontend/credit-system-frontend
> webpack --watch --progress --colors --display-error-details --config webpack/dev.config.js

/usr/bin/env: "node": 没有那个文件或目录

npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/opt/local/node/bin/node" "/opt/local/node/lib/node_modules/npm/bin/npm-cli.js" "run" "dev"
npm ERR! node v7.7.4
npm ERR! npm  v4.1.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! credit-system-frontend@0.0.1 dev: `webpack --watch --progress --colors --display-error-details --config webpack/dev.config.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the credit-system-frontend@0.0.1 dev script 'webpack --watch --progress --colors --display-error-details --config 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 credit-system-frontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack --watch --progress --colors --display-error-details --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 credit-system-frontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls credit-system-frontend
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/hldev/hldata/frontend/credit-system-frontend/npm-debug.log

Process finished with exit code 1
fireporsche的主页 fireporsche | 初学一级 | 园豆:188
提问于:2017-04-25 11:10
< >
分享
最佳答案
0

nodejs没有安装 https://nodejs.org/en/download/ 这里下载安装包

收获园豆:10
2012 | 高人七级 |园豆:21645 | 2017-04-26 08:16

但是我有下载了nodejs的

fireporsche | 园豆:188 (初学一级) | 2017-04-26 10:07

@fireporsche: 实在这个路径下吗 /opt/local/node/bin/node

2012 | 园豆:21645 (高人七级) | 2017-04-28 07:59

@2012: 不好意思,谢谢你的回答了,好像是我的nodejs没有更新,我更新了之后就可以用了

fireporsche | 园豆:188 (初学一级) | 2017-05-03 10:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册