在linux上安装NPM
问题描述:
我的目的是安装angularjs!在linux上安装NPM
对于我需要=> NPM,所以我想安装的NodeJS基于该“故宫”,但我有此错误:
File "./configure", line 16, in <module>
from gyp.common import GetFlavor
File "./tools/gyp/pylib/gyp/__init__.py", line 8, in <module>
import gyp.input
File "./tools/gyp/pylib/gyp/input.py", line 873
except ImportError as e:
也许问题是Python 2.5的版本:问题是我没有权利更新python。
PLZ,我怎么能在Linux上安装故宫没有的NodeJS
帮助赞赏。
问候
答
首先更新系统的软件包,并确保你有包及其依赖的最新版本。
sudo apt-get update
然后安装NPM(和/或的NodeJS如果需要)
sudo apt-get install npm nodejs
最后,你可能安装角与下面的命令
npm install angular
FYI,The best way to install npm is to install node using the node.js installer.NPM安装为部分的节点。