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.

/bin/sh: 1: react-scripts: not foundと/bin/sh: 1: react-scripts: not foundを解決したい

Posted at

はじめに

こちらの記事の派生になります。

1から環境を作るのに加えて、既存プロジェクトからReactフォルダのみ移す方法でも環境構築を行いました。
その際に発生したエラーの対応についてもまとめておきます。

/bin/sh: 1: react-scripts: not found

・package.jsonにreact-scriptsが存在するかを確認
・存在する場合は、package.jsonがあるreactプロジェクトフォルダとコンテナがマウントできているかを確認
・マウントもできている場合はnode_modulesのフォルダがreactプロジェクト内に存在するかを確認
・node_modulesとreact-scriptsの再インストール

EACCES: permission denied, mkdir /home/user/sample-project/react/node_modules/@aws-sdk

node_modulesフォルダに対する権限がないので以下を実行

$ sudo chmod 777 /home/user/sample-project/react/node_modules
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?