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

Vue CLIインストール時のエラー対応

Last updated at Posted at 2020-05-03

npm install -g @vue/cliをしたところ下記のエラーが発生しました。
下記の様にして、一つずつ対処しました。

##エラー

npm ERR! Unexpected end of JSON input while parsing near 

##対処

npm cache clean --force

次に、下記のようなエラーが発生しました。

##エラー
npm ERR! Error: EACCES: permission denied, access
'/usr/local/lib/node_modules'

##対処

sudo chown -R $USER /usr/local/lib/node_modules

参照URL
https://flaviocopes.com/npm-fix-missing-write-access-error/

上記の様にエラーを解消して、無事にVue CLIをインストールすることができました。

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?