Home > Software design >  What does npm ERR! code ELSPROBLEMS mean?
What does npm ERR! code ELSPROBLEMS mean?

Time:02-21

Building a node project, using serverless

Firstly I get the error

Error:
Error: npm ls -prod -json -depth=1 failed with code 1
  at ChildProcess.<anonymous> (/Users/jrobens/NetBeansProjects/azuron/winpay/winpay- 

uploader/node_modules/serverless-webpack/lib/utils.js:91:16)

To find our more information I enter npm ls -prod -json -depth=1 and get

npm ERR! code ELSPROBLEMS
npm ERR! invalid: [email protected] 
/my-project/node_modules/serverless
{

It looks as though webpack worked

webpack compiled successfully in 4581 ms

About the environment: node-14, typescript, aws

├── @serverless/[email protected]
├── @types/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]

CodePudding user response:

Fixing this

npm ls -prod json 

produces a json list of the packages. The -depth=1 flag brought an error to light. There was an invalid package.

Find the invalid package by

npm ls

and fix any error messages.

In my case there was an old serverless plugin that had a dependency of a different version of serverless.

  • Related