给定一个nodejs.makefile
包含安装 nodejs/npm 和一些 npm 包的命令,例如:
nodejs:
sudo add-apt-repository -y ppa:chris-lea/node.js #install fresh nodejs
sudo apt-get update
sudo apt-get install -y nodejs
sudo npm update -g npm #refresh npm
sudo npm install -g topojson jsdom minimist #install npm modules
npm cache clean
然后我运行:
sudo make -f nodejs.makefile
但我被错误阻止在sudo apt-get update
级别(命令2):
... #some messages here
apt-get update
... #many other messages there
Ign http://fr.archive.ubuntu.com trusty/universe Translation-en_US
W: Failed to fetch http://ppa.launchpad.net/jonoomph/openshot-edge/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/jonoomph/openshot-edge/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/michael-gruz/canon/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/michael-gruz/canon/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
make: *** [nodejs] Error 100
检查后,似乎“错误100 ”只是sudo apt-get update
失败的错误消息。但我不明白为什么这种著名nodejs
的安装方式实际上失败了,可能是启动板服务器出现故障吗?
如何使它起作用?