1
0

More than 3 years have passed since last update.

Error: npm ls -prod -json -depth=1 failed with code 1

Posted at

AWS CLIのserverless packageコマンドでデプロイパッケージ作成処理を行った際に、以下のエラーが出た。

Error: npm ls -prod -json -depth=1 failed with code 1

node_modulesでエラーが出ているということなので、削除した後、yarn installを行ったが、解決しなかった。

解決方法

Nodeをダウングレードした。

Node Version: 15.8.0

Node Version: 14.15.4

nvm list

スクリーンショット 2021-08-05 10.25.27.png

nvm use v14.15.4

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0