我剛剛使用宅基地製作了laravel5環境。 我做了「npm install」,並且得到了下面的錯誤。Npm on Homestead
[email protected]:~/Code/casts$ npm install
> [email protected] install /home/vagrant/Code/casts/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js
Binary downloaded and installed at /home/vagrant/Code/casts/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node
> [email protected] postinstall /home/vagrant/Code/casts/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass
> node scripts/build.js
` /home/vagrant/Code/casts/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-11/binding.node ` exists.
testing binary.
Binary is fine; exiting.
npm ERR! EEXIST, open '/home/vagrant/.npm/9fb4c098-adable-stream-1-0-33-package-tgz.lock'
File exists: /home/vagrant/.npm/9fb4c098-adable-stream-1-0-33-package-tgz.lock
Move it away, and try again.
npm ERR! System Linux 3.16.0-23-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vagrant/Code/casts
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/vagrant/.npm/9fb4c098-adable-stream-1-0-33-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0
我想「packages.json」可能沒問題,但問題可能是由npm引起的。
任何想法?
我充斥着錯誤的,我需要的東西就像使用'--no彬links',並安裝爲'sudo'這我「永遠」不想做平常的事情,而且我仍然遇到問題,無法讓'npm run watch'爲例如它的真實混亂工作。我即將投入生產,因爲我需要在這裏進行一些生產。 – blamb