【问题标题】:Vagrant - npm install doesn't workVagrant - npm install 不起作用
【发布时间】:2017-11-12 22:06:58
【问题描述】:

在 Vagrant 中运行 npm install 时遇到问题。得到这个消息。我已经在根目录中安装了模块(在我开始 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$ 

【问题讨论】:

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


    【解决方案1】:

    你需要安装nodenpm

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

    【讨论】:

    • cd /vagrant 或根目录中?
    • @DenisLapiLapadatovic 任何地方
    猜你喜欢
    • 2018-04-17
    • 2016-05-03
    • 2017-02-28
    • 1970-01-01
    • 2016-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多