一 node的安装
通过命令行sudo apt-get install nodejs
安装后,执行node -v
出现
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
发现只有再执行sudo apt-get install nodejs-legacy安装,再执行node -v
出现
v0.10.25
二 npm的安装
之前用了163的源,通过命令行sudo apt-get install n
pm,会报错,换了debian.ustc.edu.cn的源后,此问题解决