I'm getting an error when I run npm install -g aws-cdk
it says Maximum call stack size exceeded
if I don't do the global install then I don't get that error but my windows machine doesn't pick up that I have AWS-CDK installed then. The documentation also says to install globally.
Has anyone encountered this?
An important note I am using a company PC that sits behind a VPN. I can't however disconnect this from the VPN.
I'm running version 16.18.0 node and version 8.19.2 of npm
The log file where the error is:
37 verbose stack at resolve (node:path:158:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:21:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)
37 verbose stack at realpathCached (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\realpath.js:41:10)```