在Vagrant中运行npm install
时遇到问题。得到这条消息。我在root目录中安装了模块(在我开始之前vagrant ssh
)但是我需要在vagrant ssh
之后安装
Last login: Sun Jun 11 09:25:02 2017 from 10.0.2.2
vagrant@vagrant-ubuntu-trusty-64:~$ npm install
The program 'npm' is currently not installed. To run 'npm' please ask your administrator to install the package 'npm'
vagrant@vagrant-ubuntu-trusty-64:~$ cd /vagrant
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ npm install
The program 'npm' is currently not installed. To run 'npm' please ask your administrator to install the package 'npm'
vagrant@vagrant-ubuntu-trusty-64:/vagrant$
答案 0 :(得分:1)
您需要安装node
和npm
$ sudo apt-get update
$ sudo apt-get install nodejs npm