javascript heap out of memory when npm run serve in vuejs project?

89
November 12, 2019, at 8:30 PM

I am creating a project in Vue JS and using below command:

npm run serve

It throws an error:

javascript heap out of memory

READ ALSO
connStr is 'undefined' in "node_modules/azure-iot-device/lib/device_client.js:217

connStr is 'undefined' in "node_modules/azure-iot-device/lib/device_client.js:217

I am getting an 'undefined' error with "azure-iot-devices" after using npm install azure-iot-deviceconnStr is clearly defined as it is used in the line above which does not throw an error

95
Error: EACCES: permission denied, mkdir '/root' in Catalina NodeJS

Error: EACCES: permission denied, mkdir '/root' in Catalina NodeJS

When I try to run my Nodejs project with command node startjs on MacOS Catalina, I get this error

105
AWS DynamoDB error: “The security token included in the request is invalid.” although credentials are in shared security file

AWS DynamoDB error: “The security token included in the request is invalid.” although credentials are in shared security file

I've placed correct (and recently updated to ensure they're valid) credentials in ~/aws/credentials

100