Laravel Homestead, npm install --no-bin-links error -
i using fresh homestead (box version 0.5) fresh laravel 5.3 app. host os windows 10.
i error when running npm install --no-bin-links
npm warn deprecated minimatch@2.0.10: please update minimatch 3.0.2 or higher avoid regexp dos issue npm warn deprecated minimatch@0.2.14: please update minimatch 3.0.2 or higher avoid regexp dos issue npm warn deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 , before fail on node releases >= v7.0. please update graceful-fs@^4.0.0 possible. use 'npm ls graceful-fs' find in tree. npm err! linux 4.4.0-22-generic npm err! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--no-bin-links" npm err! node v5.12.0 npm err! npm v3.8.6 npm err! maximum call stack size exceeded npm err! npm err! if need help, may report error at: npm err! <https://github.com/npm/npm/issues> npm err! please include following file support request: npm err! /home/vagrant/t1/t1/npm-debug.log
npm-debug.log
......... 71199 silly build replace-ext@0.0.1 71200 silly build vinyl@1.2.0 71201 silly build require-dir@0.3.1 71202 silly build require-directory@2.1.1 71203 silly build require-main-filename@1.0.1 71204 silly build resolve@1.1.7 71205 silly build rechoir@0.6.2 71206 silly build resolve-url@0.2.1 71207 silly build rev-hash@1.0.0 71208 silly build rev-path@1.0.0 71209 silly build right-align@0.1.3 71210 verbose stack rangeerror: maximum call stack size exceeded 71210 verbose stack @ process.stderr (internal/process/stdio.js:23:46) 71210 verbose stack @ istty (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/gauge/progress-bar.js:11:17) 71210 verbose stack @ object.progressbar.show (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/gauge/progress-bar.js:132:8) 71210 verbose stack @ object.progressbar.pulse (/usr/lib/node_modules/npm/node_modules/npmlog/node_modules/gauge/progress-bar.js:124:8) 71210 verbose stack @ eventemitter.log.emitlog (/usr/lib/node_modules/npm/node_modules/npmlog/log.js:178:40) 71210 verbose stack @ eventemitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npmlog/log.js:170:8) 71210 verbose stack @ eventemitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npmlog/log.js:231:21) 71210 verbose stack @ tracker.(anonymous function) [as silly] (/usr/lib/node_modules/npm/node_modules/npmlog/log.js:79:19) 71210 verbose stack @ module.exports (/usr/lib/node_modules/npm/lib/install/action/build.js:8:7) 71210 verbose stack @ actions.(anonymous function) (/usr/lib/node_modules/npm/lib/install/actions.js:48:12) 71211 verbose cwd /home/vagrant/t1/t1 71212 error linux 4.4.0-22-generic 71213 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--no-bin-links" 71214 error node v5.12.0 71215 error npm v3.8.6 71216 error maximum call stack size exceeded 71217 error if need help, may report error at: 71217 error <https://github.com/npm/npm/issues> 71218 verbose exit [ 1, true ]
without --no-bin-links
works (of course if not inside of shared folder)
updated node , npm (6.9.1, 3.10.8), same issue.
i have developed particular method make work. here basic steps:
- first, make directory out of vagrant shared folder. be, e.g., '/home/vagrant/node'.
- right there, copy package.json file our laravel installation tell npm install... note created 'node' directory in unix system, nothing our windows host machine (as not part of shared folder between both).
- third, run npm install command (without --no-bin-links options unix supports symbolic links. there should no errors ;)
- finally, move 'node_modules' directory right our laravel installation folder (the shared one), having run vagrant up command console admin privileges in windows host machine. otherwise, trying move created symbolic links result in error.
it work unix machine serves laravel app. process install laravel mix without problems.
cheers!
Comments
Post a Comment