13
8

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-scripts: command not found

Last updated at Posted at 2021-04-09

事象

Terminal
$ react-scripts start
/bin/sh: react-scripts: command not found
error Command failed with exit code 127.

対策1:

参考 : 急に yarn が使えなくなった!? react-scripts: command not found

cd プロジェクトのルートディレクトリ
rm -rf node_modules
npm install

対策2:

対策1で解決しなかった場合

cd プロジェクトのルートディレクトリ
npm i react-scripts 

or

cd プロジェクトのルートディレクトリ
yarn add react-scripts
13
8
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
13
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?