fsevents node-pre-gyp install error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
mac : 10.11.4
my project use the fsevent module When I compile electron app, the following error:
fsevents@1.0.11 install /Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack TypeError: Cannot read property 'major' of null
node-pre-gyp ERR! stack at get_electron_abi (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:30:36)
node-pre-gyp ERR! stack at get_runtime_abi (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:73:16)
node-pre-gyp ERR! stack at Object.module.exports.evaluate (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:277:19)
node-pre-gyp ERR! stack at install (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/lib/install.js:138:31)
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) as install
node-pre-gyp ERR! stack at run (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object. (/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack at Module._compile (module.js:413:34)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:422:10)
node-pre-gyp ERR! stack at Module.load (module.js:357:32)
node-pre-gyp ERR! System Darwin 15.4.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jim/work/LocalHolaStudio/release/app/node_modules/fsevents
node-pre-gyp ERR! node -v v5.9.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.25
node-pre-gyp ERR! not ok
Cannot read property 'major' of null
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "rebuild" "--production"
npm ERR! node v5.9.1
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! fsevents@1.0.11 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The stack points to node-pre-gyp/lib/util/versioning.js, especially get_electron_abi at line 30, reached through install.js and the install command. Reproduce the fsevents@1.0.11 install on macOS 10.11.4 with Node v5.9.1 and Electron, then inspect why runtime version parsing returns null. Done means the install no longer throws the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100