到aws:
我逐步完成本教程http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/,但当我去安装npm时,我无法通过控制台向我显示此错误:
scripts/doc-build.sh doc/cli/npm-help-search.md man/man1/npm-help-search.1
make[1]: Entering directory `/var/www/html/npm'
node cli.js install marked-man --no-global
bash: node: command not found
make[1]: *** [node_modules/.bin/marked-man] Error 127
make[1]: Leaving directory `/var/www/html/npm'
make: *** [man/man1/npm-help-search.1] Error 2
答案 0 :(得分:0)
我猜你是从一个新实例开始的,并没有先用最新的更新或包源更新它。您缺少NodeJS包的来源。
这将添加源并安装nodejs:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
请遵循:https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions