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.

Error npm test on MacOs Sierra

See original GitHub issue

Hey 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:

  1. npm ls react-scripts: react-scripts@0.6.1
  2. node -v: v6.7.0
  3. npm -v: 3.10.3
  4. Operating system: MacOs Sierra

Any idea?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:19
  • Comments:24 (6 by maintainers)

github_iconTop GitHub Comments

206reactions
Peterlollocommented, Oct 10, 2016

In case the specificity helps anyone, I ran:

  • sudo chown -R $(whoami) /usr/local
  • brew update
  • brew install watchman
52reactions
manuelitoxcommented, Oct 7, 2016

The issue was fixed to installing of watchman.

Read more comments on GitHub >

github_iconTop 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 >

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