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.

[FAQ] 「'react-scripts' は、内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルとして認識されていません。」の対処

Posted at

事象

npm startあるいわyarn startコマンドで以下のエラーが発生する。
※ yarn とは 2016 年にFacebookがリリースした npm と互換性のあるパッケージマネージャー

PS C:\myproject> npm start

> myproject@0.1.0 build
> react-scripts build

'react-scripts' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

解決方法

npm install react-scripts

※ npm 5.0.0 以降からは install 時にデフォルトで package.jsondependencies に追加してくれるので --save-S オプションを指定する必要はない。

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?