I'm building my first project in Laravel and trying to use Elixir, using homestead on Windows 8.1. I've hit the known npm/vagrant issue of too-long-path-names: https://harvsworld.com/2015/how-to-fix-npm-install-errors-on-vagrant-on-windows-because-the-paths-are-too-long/
So I made the one line edit recommended in that article (thank god for that guy), and then ran (with and without sudo): npm install --no-bin-links
It's moved me ahead so now I get two different kinds of errors: some 'Missing write access' errors, and a bunch of "EACCES" errors:
错误输出为我提供了清道夫搜寻的下一条线索(我认为):
That brings me to this post, but the difference for me is there's no change even after I use sudo (or update my user permissions like so):
sudo chown -R $USER /usr/local
数道周-R$(Whami)~/.npm
Update: then after the suggestion below I get EPROTO and EXTXTBSY errors (even after following the prompted suggestion to rename the npm-debug.log back:
So I tried running gulp to see if it would give me clues, and error output had me do:
sudo npm rebuild node-sass
运行时出现相同的EPROTO和ETXTBSY错误,npm-debug.log文件显示: 错误事件:协议错误,符号链接‘../NODE-SASS/BIN/NODE-SASS’->;‘/home/vagrant/Code/Family-laravel/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/.bin/node-sass’
然后,在做了一个小时的其他工作后,我重新开始了这些步骤,这次错误减少了:
-
sudo npm -g install npm@latest (fine)
-
sudo npm安装——没有bin链接(只有ETXTBSY错误和任务"sass"中插件"运行序列"中的错误)
-
SUDO NPM重建node-sass--no-bin-link(没有错误!)
-
gulp (只有一个错误:未找到:通知发送)
越来越近了!