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.

fsevents@1.2.4 installation error while creating App

See original GitHub issue

Is this a bug report?

Yes. (most likely related to issue #6764)

Did you try recovering your dependencies?

Yes, but this issue is related to errors encountered during creation of a CRA app via either of the commands below-

npx create-react-app my-app
npm init react-app my-app

Which terms did you search for in User Guide?

Create App, Create project

Environment

Environment: OS: macOS 10.14.4 Node: 11.12.0 Yarn: Not Found npm: 6.7.0 Watchman: 4.9.0 Xcode: Xcode 10.2 Build version 10E125 Android Studio: Not Found

Packages: (wanted => installed) react: ^16.8.4 => 16.8.4 react-dom: ^16.8.4 => 16.8.4 react-scripts: 2.1.8 => 2.1.8

Steps to Reproduce

  1. Execute npx create-react-app my-app
  2. Or execute npm init react-app my-app
  3. Or execute create-react-app my-app

Expected Behavior

The project creation should complete without any error.

Actual Behavior

While creating a CRA project the following errors are encountered-

> fsevents@1.2.4 install /Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents
> node install

gyp ERR! configure error
gyp ERR! stack Error: Command failed: /Users/anjan/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:297:12)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:988:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:404:11)
gyp ERR! stack     at Socket.emit (events.js:197:13)
gyp ERR! stack     at Pipe._handle.close (net.js:611:12)
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/Cellar/node/11.12.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64" "--napi_version=4" "--node_abi_napi=napi"
gyp ERR! cwd /Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/11.12.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:988:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 18.5.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/11.12.0/bin/node" "/Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/anjan/Documents/VendorPortal/development/test/node_modules/fsevents
node-pre-gyp ERR! node -v v11.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok

The app works fine however I am not sure of future impacts of the error encountered while installing fsevents. Unclear if this can be safely ignored or node or npm version must be downgraded. The issue can be re-created at will.

Screenshot-

Screen Shot 2019-04-09 at 8 00 14 PM

Reproducible Demo

Just run any of the commands below with the version of npm and node shown above-

npx create-react-app my-app
npm init react-app my-app

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Prophet32jcommented, Apr 24, 2019

I am running Node v10.15.0 and npm v6.4.0, and I am getting the same error.

However, unlike annjawn, I can’t run the app at all.

2reactions
iansucommented, Apr 11, 2019

This is almost certainly because you’re running Node 11. Compilation of native modules with node-pre-gyp breaks frequently on new versions of Node. Try using Node 10 instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm install throwing fsevents warning on non ...
As the above error message states that fsevents is optional and it is skipped in installation process. You can run npm install --no-optional ......
Read more >
Error while deploying my app with NOW (Example) - Treehouse
I have errors regarding fsevents module (it has bothered be every time during npm install with 'deprecated' issues) an...
Read more >
Dependency installation error on fsevents 1.2.4 with Node.js 12
We can't install indirect dependency fsevents 1.2.4 Node module with Node.js 12 on macOS. log.
Read more >
[Docker Course 4-13] Issue on npm install step
I've facing an issue while installing the app dependencies, returning an user permission denied while accessing the /app directory.
Read more >
How to fix we no longer support global installation ... - YouTube
Hello everyone, this is video will show how to fix create -react- app issue with npx.#React #CleverProgramer #CreactReactApp.
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