question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-scripts: command not found after node-sass-chokidar installed

See original GitHub issue

Note from maintainers: if you use npm@5.x, please downgrade to npm@4.x because npm@5.x currently has major bugs causing this and other issues. npm i -g npm@4


Is this a bug report?

Yes.

Can you reproduce the problem with npm 4.x?

Yes. same

Have you read the Troubleshooting section and searched the User Guide?

Yes

Environment

  1. node -v: 6.10.2
  2. npm -v: 5.0.4 / 4.6.1
  3. yarn --version (if you use Yarn): null
  4. npm ls react-scripts (if you haven’t ejected): No

Then, specify:

  1. Operating system: macOS 10.12.5
  2. Browser and version (if relevant): chrome version 60

Steps to Reproduce

  1. install create-react-app globally
  2. create my app & npm install
  3. install node-sass-chokidar -D
  4. edit ‘scripts’ part fllowing documentation
  5. npm start

I tried remove node_modules , clear cache and reinstalled twice, it still happened.

And it works before I install node-sass-chokidar

here’s npm script:

"scripts": {
    "build-css": "node-sass-chokidar src/ -o src/",
    "watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
    "start-js": "react-scripts start",
    "start": "npm-run-all -p watch-css start-js",
    "build": "npm run build-css && react-scripts build",
    "test": "node scripts/test.js --env=jsdom"
  },

Expected Behavior

App is running.

Actual Behavior

Threw this error

Reproducible Demo

none.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gaearoncommented, Jun 27, 2017

npm 5.x has more than 50 known issues. Please downgrade to npm 4.x until they’re solved.

https://github.com/npm/npm/issues/16991

npm i -g npm@4
0reactions
gaearoncommented, Sep 2, 2017

I’ll lock this because it is completely out of our control. npm can help you with this.

Please file issues with them: https://github.com/npm/npm/issues

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React npm start not working : 'No version of chokidar available'
I tried npm install -g chokidar and it is installed. But I'm getting the same error as before "no version chokidar is available."...
Read more >
react-scripts: command not found error [Solved] | bobbyhadz
Run the `npm install react-scripts` command to solve the react-scripts: command not found error. If necessary delete your `node_modules` directory and your ...
Read more >
node-sass-chokidar - npm Package Health Analysis - Snyk
We found a way for you to contribute to the project! Looks like node-sass-chokidar is missing a security policy. You can connect your...
Read more >
sass-loader - npm
Loads a Sass/SCSS file and compiles it to CSS. Getting Started. To begin, you'll need to install sass-loader : npm install sass-loader ...
Read more >
[Solved] react-scripts: command not found - ItsJavaScript
If you clone the react project and run it without installing the package dependencies. · If the project is initialized with yarn and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found