【发布时间】:2017-12-07 19:32:45
【问题描述】:
我想安装 node 来运行 Angular2 程序,但是在安装时出现这个错误:
npm WARN npm npm does not support Node.js v0.10.25
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 You can find the latest version at https://nodejs.org/
npm WARN using --force I sure hope you know what you are doing.
/usr/local/lib/node_modules/npm/lib/cache.js:3
const BB = require('bluebird')
^^^^^
npm ERR! Use of const in strict mode.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/swapnily/.npm/_logs/2017-07-04T10_51_42_147Z-debug.log
我已经尝试过这个解决方案:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
但即使对于第一个命令“sudo npm cache clean -f”,我也遇到了同样的问题。如果有人知道,请告诉我。
【问题讨论】:
-
请注明是哪个版本的Ubuntu
-
@ChandraEskay,Ubuntu 14.04 lts
-
尝试升级节点版本并进行全新安装。
-
@ChandraEskay,是的。我有问题提到。在升级节点版本时我遇到了同样的问题
-
检查这是否解决了您的问题! Install specific node version
标签: node.js angular ubuntu npm xampp