如何修复此错误-NPM [英] How to fix this Error -npm

查看:0
本文介绍了如何修复此错误-NPM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装npm,但得到以下error。 我已删除NPM并重新安装,但再次收到以下错误:


npm ERR! Linux 4.15.0-30-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! vx-leave-system@0.0.1 start: `node ./tools/server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vx-leave-system@0.0.1 start script 'node ./tools/server.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 vx-leave-system package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./tools/server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs vx-leave-system
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls vx-leave-system
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/seelan/Documents/vx-leave-system/npm-debug.log

我如何修复此问题?

推荐答案

在我看来,您运行的是较新版本的节点,但运行的是过时版本的npm。

您可以执行以下任一操作:

  1. 试用NPM的最新稳定版本:
    您可以通过以下方式升级到最新版本的NPM:npm install -g npm@latest

  1. 从您的计算机完全卸载Node,转到他们的website并安装最新的稳定节点版本。NPM随附。

这篇关于如何修复此错误-NPM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆