Error: npm ls -prod -json -depth=1 failed with code 1
796 ワード
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
nvm use v14.15.4
以上。
Author And Source
この問題について(Error: npm ls -prod -json -depth=1 failed with code 1), 我々は、より多くの情報をここで見つけました https://qiita.com/tel1f8/items/6185d5683d7fb9630d6b著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .