【问题标题】:I am trying the command npm start but it gives error as follows.I am using ubuntu 14.04我正在尝试命令 npm start 但它给出的错误如下。我使用的是 ubuntu 14.04
【发布时间】:2016-10-22 11:49:02
【问题描述】:

我想使用 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

【问题讨论】:

  • angular 2 代码在哪里?你为什么用v0.10.25
  • 那我应该使用哪个版本的节点。请帮帮我。
  • 它对我有用,我安装了节点 6.2.1 和 nvm github.com/creationix/nvm
  • 现在我有以下错误。我有节点版本 v6.2.2 util.js:35 var str = String(f).replace(formatRegExp, function(x) { ^ RangeError: Maximum call stack size超过

标签: node.js typescript angular npm-install


【解决方案1】:

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

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

【讨论】:

  • 现在我安装了 node v6.2.2。但是错误是 RangeError: Maximum call stack size exceeded. 你能帮我吗
猜你喜欢
  • 1970-01-01
  • 2021-11-24
  • 1970-01-01
  • 2021-01-08
  • 2020-12-18
  • 2019-05-23
  • 1970-01-01
  • 2023-03-07
相关资源
最近更新 更多