npm 更换插件版本_node 本机版本与hx装的插件npm不一致提示不支持怎么办?

/Applications/HBuilderX.app/Contents/HBuilderX/plugins/npm/npm run dev

bash-3.2$ /Applications/HBuilderX.app/Contents/HBuilderX/plugins/npm/npm run dev

npm WARN npm npm does not support Node.js v10.14.1

npm WARN npm You should probably upgrade to a newer version of node as we

npm WARN npm can't make any promises that npm will work with this version.

npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.

npm WARN npm You can find the latest version at https://nodejs.org/

npm WARN lifecycle npm is using /usr/local/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.

todolist@1.0.0 dev /Users/liuheng/Desktop/website/todolist

webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

npm ERR! file sh

npm ERR! path sh

npm ERR! code ELIFECYCLE

npm ERR! errno ENOENT

npm ERR! syscall spawn sh

npm ERR! todolist@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

npm ERR! spawn sh ENOENT

npm ERR!

npm ERR! Failed at the todolist@1.0.0 dev script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/liuheng/.npm/_logs/2018-12-04T07_04_31_494Z-debug.log

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值