我正在尝试命令npm start但它给出了如下错误。我正在使用ubuntu 14.04

时间:2016-06-21 04:48:40

标签: node.js typescript angular npm-install

我想使用npm install命令和npm start命令,但我得到以下错误。我的节点版本是-v0.10.25,npm版本是--3.9.5。如何解决以下错误。请帮助我我该如何解决这个问题。

npm ERR! Linux 4.2.0-36-generic
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.25
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! angular2-app@0.0.0 start: `gulp serve.dev --color`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular2-app@0.0.0 start script 'gulp serve.dev --color'.
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 angular2-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp serve.dev --color
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-app
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/tannu/Desktop/ows-veraction-repo/npm-debug.log

1 个答案:

答案 0 :(得分:0)

首先,您需要在更新后将节点更新到最新版本(即6.2),请按照以下步骤操作:

http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/