react-scripts: command not found after node-sass-chokidar installed
See original GitHub issueNote 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
node -v
: 6.10.2npm -v
: 5.0.4 / 4.6.1yarn --version
(if you use Yarn): nullnpm ls react-scripts
(if you haven’t ejected): No
Then, specify:
- Operating system: macOS 10.12.5
- Browser and version (if relevant): chrome version 60
Steps to Reproduce
- install create-react-app globally
- create my app & npm install
- install node-sass-chokidar -D
- edit ‘scripts’ part fllowing documentation
- 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:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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!