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 1 year has passed since last update.

【React】 create-react-appで躓いた : npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Last updated at Posted at 2023-01-16

参考

環境

  • node.js v16.18.1
  • npm 8.19.2
  • react 18.2.0

内容

Reactの環境を作成しようとしたところ以下の問題が発生し上手くいかなかった

$ create-react-app <project_name>

↓エラー内容

...
Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting academy-react-app/ from /home/bitnami
Done.

npmのキャッシュを削除すると解決した

npm cache clean --force 

以上

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?