MCLond
MCLond
  • 发布:2018-12-04 15:18
  • 更新:2018-12-04 15:21
  • 阅读:3019

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

分类:HBuilderX

/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

2018-12-04 15:18 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

hx自带的版本确实不是最新的,你可以手动将其升级到最新版本

  • MCLond (作者)

    您好,我本机已经安装过了node,请问hx 的插件怎么手动升级


    2018-12-04 15:31

该问题目前已经被锁定, 无法添加新回复