0
0

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 5 years have passed since last update.

npm run watch実施時に発生したnpm WARN package.jsonのエラーに関して

Last updated at Posted at 2020-05-10

npm run watch実施時にnpm WARN package.jsonが発生

今までは通常通りにnpm run watchを使用できていたのに、急に以下のエラーが発生

$ npm run watch
npm WARN package.json @ No repository field.

以下、対処方法

 再度インストールを実施

// バージョン指定でインストール
nodebrew install-binary {version}

// 安定版インストール
nodebrew install-binary stable 

// 最新版インストール
nodebrew install-binary latest 

nodebrew lsnodebrew listで一覧を確認

mbp:~ *****$ nodebrew ls
v0.10.12
v13.13.0
v14.1.0

nodebrew useで使用するバージョンを指定

このnodebrew useを使用しないとうまくいかないので実施する

// バージョン指定で使用
mbp:~ *****$ nodebrew use 14.1.0

// 安定版を指定
mbp:~ *****$ nodebrew use stable

// 最新版を指定   
mbp:~ *****$ nodebrew use latest

最後にバージョンの確認

mbp:~ *****$  node -v

参考記事

npm command not found と出てきた時の解決方法
nodebrewでNode.jsをアップデートする

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?