fsevents@1.2.4 installation error while creating App
See original GitHub issueIs 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
- Execute
npx create-react-app my-app
- Or execute
npm init react-app my-app
- 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-
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:
- Created 4 years ago
- Comments:14 (2 by maintainers)
Top GitHub Comments
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.
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.