Npm install maximum call stack size exceeded ?? I installed fresh laravel 5.7. and tried to npm install.. it gives following error log
3264 verbose stack RangeError: Maximum call stack size exceeded
3264 verbose stack at RegExp.test ()
3264 verbose stack at isDepOptional (C:\ProgramFiles\nodejs\node_modules\npm\lib\install\deps.js:398:27)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:414:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3264 verbose stack at failedDependency (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:430:9)
3265 verbose cwd C:\Users\Mecjos\deneme\laravel-inst-folder
3266 verbose Windows_NT 10.0.17134
3267 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
3268 verbose node v10.15.1
3269 verbose npm v6.4.1
3270 error Maximum call stack size exceeded
3271 verbose exit [ 1, true ]
what is maximum stack size exceeded error. Just yesterday I installed same laravel version and installed npm.??
@BOBBYBOUWMANN - Ok. how can I cleand the cache? I tried to node_modules directory inside the npm directory.. it failed completely..
Try below commands
// Clean your cache
npm cache clean --force
// Rebuild npm
npm rebuild
// Reinstall node_modules
rm -rf node_modules
npm install
@BOBBYBOUWMANN - didn't work.. I have just installed laravel app why it gives that error??
@BOBBYBOUWMANN - I tried to install dependencies one by one.. it seems like laravel mix cause this problem. Do you have any idea?
I have no clue of what it could be. Installing a new project from scratch works fine for me!
maybe same issue as me if you decrease version laravel-mix in package.json then npm install it will work and now I need to follow the best solution
I have the same issue. I have just created a new project, run npm install and got "Maximum call stack size exceeded".
@BHUM - have you found a solution?
@JSA - I have problem yesterday until now, I not found solution but if change laravel-mix version in package.json it can run npm install.have any solution?
@BHUM - Hmm... Which version did you change it to?
@JSA - change 4 to 3 or less but i not recommend this solution.
Isn't there any deep solution for this problem??
I suggest you to use CDN for that in my case it solve that problem
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
Please sign in or create an account to participate in this conversation.