我在流浪汉中安装npm包时遇到问题.
我是在流浪汉内部的SSH,我正在尝试运行sudo npm install gulp它在虚拟机在主机和虚拟机之间共享的文件夹中不起作用.
但它在纯粹在VM内部的单独目录中完美地工作.
这是我给出的错误的一部分:
npm ERR! Error: ENOENT, chmod '/vagrant/public/laravelproject/node_modules/gulp/node_modules/gulp-util/test/PluginError.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!
npm ERR! System Linux 3.2.0-60-generic-pae
npm ERR! command "node" "/usr/local/bin/npm" "install" "gulp" "--save-dev"
npm ERR! cwd /vagrant/public/laravelproject
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.6
npm ERR! path /vagrant/public/laravelproject/node_modules/gulp/node_modules/gulp-util/test/PluginError.js
npm ERR! fstream_path /vagrant/public/laravelproject/node_modules/gulp/node_modules/gulp-util/test/PluginError.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
任何人都知道如何提供vm的完全访问权限来访问主机上的目录我试图与VM共享,这是我的流浪汉配置:
Vagrant.configure("2") do |c|
c.vm.box = "precise32"
c.vm.box_url = "http://files.vagrantup.com/precise32.box"
c.vm.network :private_network, ip:"192.168.33.10"
c.vm.synced_folder "./public", "/var/www/", owner:"root", group:"root"
end