node.js - Error Installing laravel-elixir on windows: npm ERR! EEXIST, open '\AppData\Roaming\npm-cache\837c67b9-adable-s tream-1-0-33-package-tgz.lock' -
i have fresh installation of laravel 5.1. followed these steps set elixir, bootstrap, font-awesome etc. when run npm install
throws error. tried using npm install --no-bin-links
laravel elixir documentation suggests.
$ npm install --no-bin-links npm warn optional dep failed, continuing fsevents@0.3.8 npm warn optional dep failed, continuing fsevents@0.3.8 > node-sass@3.2.0 install c:\users\user\phpstormprojects\my_project\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass > node scripts/install.js binary downloaded , installed @ c:\users\user\phpstormprojects\my_project\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64-11\binding.node > node-sass@3.2.0 postinstall c:\users\user\phpstormprojects\my_project\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass > node scripts/build.js ` c:\users\user\phpstormprojects\my_project\node_modules\laravel-elixir\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64-11\binding.node ` exists. testing binary. binary fine; exiting. npm err! eexist, open 'c:\users\user\appdata\roaming\npm-cache\837c67b9-adable-stream-1-0-33-package-tgz.lock' file exists: c:\users\user\appdata\roaming\npm-cache\837c67b9-adable-stream-1-0-33-package-tgz.lock move away, , try again. npm err! system windows_nt 6.1.7600 npm err! command "c:\\program files\\nodejs\\node.exe" "c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--no-bin-links" npm err! cwd c:\users\user\phpstormprojects\my_project npm err! node -v v0.10.32 npm err! npm -v 1.4.28 npm err! path c:\users\user\appdata\roaming\npm-cache\837c67b9-adable-stream-1-0-33-package-tgz.lock npm err! code eexist npm err! errno 47 npm err! not ok code 0
i searched file (that exists) in npm-cache
directory , found there no such file. but, when execute npm command created along hundreds of lock file. tried delete file during installation process (which quite tricky , seems impossible, because there lot of files created , removed simultaneously), didn't much. error not same. of time says 837c67b9-adable-stream-1-0- 33-package-tgz.lock
file exists, times it's other lock file. tried updating npm latest release: npm -g install npm@latest
(sauce)
what helped me on win 8.1:
install newest version of python (3.5 @ moment) , make sure it's on path (open command line tool power shell , enter 'py --version').
npm cache clear
in laravel installation folder run: npm install --no-bin-links
i running power shell administrator when issuing commands, i'm not sure matters (won't hurt in case though).
Comments
Post a Comment