Error npm test on MacOs Sierra
See original GitHub issueHey there,
I can’t run with success the npm test
command:
❯ npm test
> react-scripts test --env=jsdom
Determining test suites to run...2016-10-07 11:38 node[873] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-10-07 11:38 node[873] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:160
throw er; // Unhandled 'error' event
^
Error: Error watching file for changes: EMFILE
at exports._errnoException (util.js:953:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)
npm ERR! Test failed. See above for more details.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
:react-scripts@0.6.1
node -v
:v6.7.0
npm -v
:3.10.3
- Operating system: MacOs Sierra
Any idea?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:19
- Comments:24 (6 by maintainers)
Top Results From Across the Web
npm install permission denied (macOS) - node.js
For Mac;. Run this on the Terminal > sudo chown -R $USER /usr/local/lib/node_modules.
Read more >math3d-component - npm
npm start doesn't detect changes; npm test hangs on macOS Sierra; npm run build exits too early; npm run build fails on Heroku ......
Read more >Troubleshooting - Create React App
npm start doesn't detect changes · npm start fail due to watch error · npm test hangs or crashes on macOS Sierra ·...
Read more >Installing Gulp on macOS BIg Sur - Intro guide to Gulp
You may get a permissions issue with the package.json file.. npm update check failed │ │ Try running with sudo or get access...
Read more >How To Update Node.js on MacOS: Hindsight on Old Mac
However, the package manager does not update npm. If we rerun the command to check npm version, error is shown since the updated...
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
In case the specificity helps anyone, I ran:
sudo chown -R $(whoami) /usr/local
brew update
brew install watchman
The issue was fixed to installing of watchman.