1

I use npm to install new component built by ReactJs. I can successfully install it on local windows machine. However, when I tried to use AWS codeBuild to build my client project, I encountered the following error in virtual machine:

npm ERR! Maximum call stack size exceeded

My npm version is 6.4.1.

When the build starts, the build process actually download npm and start to install packages based on package.json. So it is like to install packages on brand new machine.

I've tried to search online to see if there is anything similar and I couldn't find any solution.

Just plain 'npm install'

Jerry XU
  • 11
  • 1
  • 1
    Possible duplicate of [Maximum call stack size exceeded on npm install](https://stackoverflow.com/questions/40566348/maximum-call-stack-size-exceeded-on-npm-install) – Iago Carvalho Jul 15 '19 at 18:08
  • Can you share buildspec.yml – matesio Jul 15 '19 at 18:44
  • - apt-get install -y yarn - apt install nodejs npm - nodejs --version - apt-get install -y p7zip-full npm install – Jerry XU Jul 15 '19 at 20:08
  • "npm install" works fine locally on my machine. It just give me that error message on Linux based virtual machine. – Jerry XU Jul 15 '19 at 20:11

0 Answers0