5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

npm install実行時、エラーが発生した場合の対処法

5
Last updated at Posted at 2022-05-30

はじめに

 2022年5月下旬に開発環境の構築をするにあたり、npm installをした際にエラーが発生したので、対処方法を以下に記載します。

エラー内容

 以下の赤枠が、npm installをした際に発生したエラーです。
image.png

調査を行ったところ、SAP for Meに以下の内容が記載されていました。
image.png

→https://npm.sap.com のSAP NPMレジストリの内容が、
https://registry.npmjs.org のNPMレジストリに移行されたことにより、発生したエラーのようです。

対処方法

以下のコマンドを実行してください。

コマンド

$ npm install @sap/ui5-builder-webide-extension

エラーが発生していなければ、再度以下のコマンドを実行してください。

$ npm install

結果

image.png
image.png

無事、npm installができました。

まとめ

上記の@sap/ui5-builder-webide-extensionに関するエラーだけでなく、
@sap/html5-app-deployer、@sap/node-jwtに関するエラーも発生しました。

その場合も同様に対処したらエラーが解消されると思います。
(私の場合は解消しました。)

似たようなエラーが発生した場合、こちらを参考にしていただければ幸いです。

参考資料

SAP for Me (https://me.sap.com/notes/0003046586)

5
1
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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?