Create-react-app: Error on npm start. (sh: 1: react-scripts: Permission denied)

Created on 17 Jul 2018  路  4Comments  路  Source: facebook/create-react-app

I have created a new react app but when I run the app by using npm start I am having these errors.

sh: 1: react-scripts: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! [email protected] start: react-scripts start
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Using node version => 10.6.0
Npm version => 6.1.0

Can any one tell how the issue can be resolved?

low (ignored issue template)

Most helpful comment

Try this:
npm install react-scripts --save and then run your application
Perhaps it should work

All 4 comments

try:

$ SET PORT=3100
$ npm start

Please fill out the issue template so we can help you. Thanks!

Try this:
npm install react-scripts --save and then run your application
Perhaps it should work

Hello I've tried all your option but still have the same problem:

$ sudo yarn start
yarn run v1.12.3
$ react-scripts start
/bin/sh: 1: react-scripts: Permission denied
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Was this page helpful?
0 / 5 - 0 ratings