Vagrant - npm install不起作用

时间:2017-06-11 09:35:19

标签: ubuntu npm vagrant npm-install node-modules

在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$ 

1 个答案:

答案 0 :(得分:1)

您需要安装nodenpm

$ sudo apt-get update
$ sudo apt-get install nodejs npm