Ubuntu 流浪者-npm安装不';行不通
在Vagrant中运行npm安装时遇到问题。收到这个消息。我已经在root dir中安装了模块(在我启动Ubuntu 流浪者-npm安装不';行不通,ubuntu,npm,vagrant,npm-install,node-modules,Ubuntu,Npm,Vagrant,Npm Install,Node Modules,在Vagrant中运行npm安装时遇到问题。收到这个消息。我已经在root dir中安装了模块(在我启动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' ple
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$
您需要安装
node
和npm
$ sudo apt-get update
$ sudo apt-get install nodejs npm
在
cd/vagrant
或根目录中?@denisplapadatovic任意位置