I am having trouble installing npm packages on strollers.
I am SSH inside a tramp, and I try to start sudo npm install gulp, it does not work in a folder that is roaming between the host and the virtual machine.
But it works fine inside a separate directory, which is located inside a virtual machine.
This is part of the error I give:
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! <http://github.com/npm/npm/issues>
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
Does anyone know how to provide full access for vm to access the directory on the node that is trying to share with VM, this is my stray configuration:
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
source
share