fsevents: npm install error 1.2.11
@vue/cli 4.1.1 node v12.13.1 npm 6.13.4 macOS 10.15.2
% vue add electron-builder
📦 Installing vue-cli-plugin-electron-builder...
> fsevents@1.2.11 install /Users/sheng/electron/vue-cli-plugin-electron-builder/node_modules/watchpack/node_modules/fsevents
> node-gyp rebuild
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:72:
/usr/local/include/Block.h:16:3: error: Never include this file directly. Use <lzma.h> instead.
# error Never include this file directly. Use <lzma.h> instead.
^
/usr/local/include/Block.h:93:2: error: unknown type name 'lzma_check'
lzma_check check;
^
/usr/local/include/Block.h:148:2: error: unknown type name 'lzma_vli'
lzma_vli compressed_size;
^
/usr/local/include/Block.h:172:2: error: unknown type name 'lzma_vli'
lzma_vli uncompressed_size;
^
/usr/local/include/Block.h:200:2: error: unknown type name 'lzma_filter'
lzma_filter *filters;
^
/usr/local/include/Block.h:217:20: error: use of undeclared identifier 'LZMA_CHECK_SIZE_MAX'
uint8_t raw_check[LZMA_CHECK_SIZE_MAX];
^
/usr/local/include/Block.h:231:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int3;
^
/usr/local/include/Block.h:232:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int4;
^
/usr/local/include/Block.h:233:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int5;
^
/usr/local/include/Block.h:234:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int6;
^
/usr/local/include/Block.h:235:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int7;
^
/usr/local/include/Block.h:236:2: error: unknown type name 'lzma_vli'
lzma_vli reserved_int8;
^
/usr/local/include/Block.h:237:2: error: unknown type name 'lzma_reserved_enum'
lzma_reserved_enum reserved_enum1;
^
/usr/local/include/Block.h:238:2: error: unknown type name 'lzma_reserved_enum'
lzma_reserved_enum reserved_enum2;
^
/usr/local/include/Block.h:239:2: error: unknown type name 'lzma_reserved_enum'
lzma_reserved_enum reserved_enum3;
^
/usr/local/include/Block.h:240:2: error: unknown type name 'lzma_reserved_enum'
lzma_reserved_enum reserved_enum4;
^
/usr/local/include/Block.h:261:2: error: unknown type name 'lzma_bool'
lzma_bool ignore_check;
^
/usr/local/include/Block.h:263:2: error: unknown type name 'lzma_bool'
lzma_bool reserved_bool2;
^
/usr/local/include/Block.h:264:2: error: unknown type name 'lzma_bool'
lzma_bool reserved_bool3;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sheng/electron/vue-cli-plugin-electron-builder/node_modules/watchpack/node_modules/fsevents
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
> electron-chromedriver@5.0.1 install /Users/sheng/electron/vue-cli-plugin-electron-builder/node_modules/electron-chromedriver
> node ./download-chromedriver.js
> core-js@2.6.11 postinstall /Users/sheng/electron/vue-cli-plugin-electron-builder/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> ejs@2.7.4 postinstall /Users/sheng/electron/vue-cli-plugin-electron-builder/node_modules/ejs
> node ./postinstall.js
+ vue-cli-plugin-electron-builder@1.4.4
added 707 packages from 373 contributors and audited 5964 packages in 59.352s
4 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
✔ Successfully installed plugin: vue-cli-plugin-electron-builder
ERROR Error: package.json not found in /Users/sheng/electron/vue-cli-plugin-electron-builder
Error: package.json not found in /Users/sheng/electron/vue-cli-plugin-electron-builder
at getPkg (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:25:11)
at invoke (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:40:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 16 (2 by maintainers)
Commits related to this issue
- Updated ngx-bootstrap version in order to get the demo working, set fsevents version to prevent npm i errors ngx-bootstrap version in root package.json now matches the version of same package in proj... — committed to rushvora/ngx-intl-tel-input by rushvora 4 years ago
- Updated ngx-bootstrap version in order to get the demo working, set fsevents version to prevent npm i errors ngx-bootstrap version in root package.json now matches the version of same package in proj... — committed to rushvora/ngx-intl-tel-input by rushvora 4 years ago
I’ve found that the problem can be temporarily fixed by installing
fsevents@1.2.9as a top level dependency. While this doesn’t fix the compilation error, 1.2.9 is the most recent version to have a distributed binary for macOS, so using that will cause jest and other dependencies that require fsevents v1 to use the pre-compiled version.@TLBSoftware Thanks!
I was a little wary of moving that whole directory, so I did this and finally…FINALLY…these errors are gone (was making me thing every single
npm installwas failed even though it technically worked):@qianzhangsheng what is the official solution to this issue?
I get same error when I copy Applications from one Macbook to another , maybe the copy that overlay the “/usr/local/include” dir , so move it and use global librarys . you can execute : sudo mv /usr/local/include /usr/local/include_old
and try again
_Originally posted by @cc14514 in https://github.com/golang/go/issues/25240#issuecomment-387969187_
it’s a transitive dependency of webpack so…you should tell these guys that 😉 https://github.com/webpack/watchpack/issues/130
edit: err that is literally your issue. i guess you already told them
does it work when you
rm -rf node_modulesandnpm i?In case it helps others, I was able to resolve this by removing existing command line tools then re-installing: https://discuss.codecademy.com/t/installation-error-create-react-app/458364/6