node.js - npm install within Vagrant box but sudo npm run dev error -
i installed npm in vagrant box, , when tried start project, error occurred. error follows:
vagrant@vagrant-ubuntu-trusty-64:~$ sudo npm run dev npm err! linux 3.13.0-121-generic npm err! argv "/opt/node-v6.11.2-linux-x64/bin/node" "/usr/local/bin/npm" "run" "dev" npm err! node v6.11.2 npm err! npm v3.10.10 npm err! path /home/vagrant/package.json npm err! code enoent npm err! errno -2 npm err! syscall open npm err! enoent enoent: no such file or directory, open '/home/vagrant/package.json' npm err! enoent enoent: no such file or directory, open '/home/vagrant/package.json' npm err! enoent not problem npm npm err! enoent , related npm not being able find file. npm err! enoent npm err! please include following file support request: npm err! /home/vagrant/npm-debug.log
my vagrantfile:
vagrant.configure(2) |config| config.vm.box = "~/dev/webstormprojects/ubuntu_former.box" config.vm.network "private_network", ip: "192.168.33.10" config.vm.synced_folder "../web-admin", "/vagrant_data" end
please me, , thank you
Comments
Post a Comment