2017-06-11 167 views
0

無法在Vagrant中運行npm install。獲取此消息。我已經安裝在根目錄模塊(在我開始vagrant ssh),但我需要它來安裝後vagrant sshVagrant - npm安裝不起作用

Last login: Sun Jun 11 09:25:02 2017 from 10.0.2.2 
[email protected]:~$ npm install 
The program 'npm' is currently not installed. To run 'npm' please ask your administrator to install the package 'npm' 
[email protected]:~$ cd /vagrant 
[email protected]:/vagrant$ npm install 
The program 'npm' is currently not installed. To run 'npm' please ask your administrator to install the package 'npm' 
[email protected]:/vagrant$ 

回答

1

您需要安裝nodenpm

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

在'CD/vagrant'或根dir? –

+0

@DenisLapiLapadatovic任何地方 –