安装wepy报错,执行npm run dev 报错,需要升级npm

npm ERR! Linux 3.10.0-693.2.2.el7.x86_64

npm ERR! argv "/usr/bin/node" "/bin/npm" "run" "dev"

npm ERR! node v6.17.1

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! myrpoj2@0.0.1 dev: `wepy build --watch`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the myrpoj2@0.0.1 dev script 'wepy build --watch'.

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 myrpoj2 package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!    wepy build --watch

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!    npm bugs myrpoj2

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!    npm owner ls myrpoj2

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR!    /home/xiaochengxu/myrpoj2/npm-debug.log


发生以上报错

sudo npm install -g n

sudo n stable

或者

sudo n lts


查看nodejs版本

sudo n ls

使用版本号安装

sudo n 版本号

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容