nx workspace angular monorepo throws error while creating new app

656 Views Asked by At

I am creating new angular monorepo application, I run following command:

npx create-nx-workspace explorer --preset=angular

but I am getting following error once it executes:

√ Installing dependencies with npm
× Creating your workspace in explorer

 >  NX   Nx failed to create a workspace.

   Exit code: 1
   Log file: C:\Users\xxx\AppData\Local\Temp\tmp-21320-9eV8hcpfQJm2\error.log

File logs are as follows:

2590 error invalid json response body at typescript-estree reason: Unexpected end of JSON input
2591 verbose exit 1

Is it because I am behind company's VPN or do I need to do something to handle it?

Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

I am able to fix it using following commands:

 npm cache clean --force

npm config rm proxy

npm config rm https-proxy

npm cache verify

And once it is able to run then again I added my org's proxy config again.

Also, Comment the .npmrc file as well