Edit: I have been advised this question is off-topic so reposted on stackoverflow here: https://stackoverflow.com/questions/69094604/npm-fails-during-npm-install-with-npm-err-maximum-call-stack-size-exceeded
I am having issues running npm on a clean git clone of sensei using vagrant (vvv version) as described here https://github.com/Automattic/sensei/wiki/Setting-Up-Your-Development-Environment#configure-a-local-wordpress-instance
I get the following errors:
vagrant@vvv:/srv/www/wordpress-one/public_html/wp-content/plugins/sensei$ npm install
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2021-09-07T03_45_45_825Z-debug.log
It is a new fresh new install that is creating the errors so not sure why … I have also tried the following based on some posts I have read elsewhere and it errors the same:
- doing
rm -fr node_modules/
in the sensei directory and /usr/lib/node_modules - doing
npm cache clean --force
- doing
npm rebuild
- removing the package-lock.json file and running
Any help – what might I be doing wrong?