Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install-app-deps fail for fsevents #3555

Closed
idanwork opened this issue Dec 17, 2018 · 13 comments
Closed

install-app-deps fail for fsevents #3555

idanwork opened this issue Dec 17, 2018 · 13 comments

Comments

@idanwork
Copy link

idanwork commented Dec 17, 2018

  • Version:20.38.2
  • Target: OSX 10.11.6 (Also confirmed on windows 10)
  • Node Version: 10.14.2
  • NPM Version: 6.4.1

Hi,
I am using chokidar as file monitor for my project, when trying to install the packages on a new machine (or delete the previous package-lock.json)

I get this error in the postinstall script

node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-electron-v3.0-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (electron-v3.0 ABI, unknown) (falling back to source compile with node-gyp)
In file included from ../fsevents.cc:6:
../../../../nan/nan.h:1081:96: error: too many arguments to function call, expected at most 4, have 5
        length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_, static_cast<int>(len), 0, flags);
                  ~~~~~~~~~~~~~~~~~                                                            ^~~~~
/Users/idanwork/.electron-gyp/iojs-3.0.12/deps/v8/include/v8.h:2590:3: note: 'WriteUtf8' declared here
  int WriteUtf8(char* buffer,
  ^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder]
   : async_resource("fsevents:FSEvents"), lockStarted(false) {
     ^
1 warning and 1 error generated.

There are 2 issues here that I don't understand:

  1. I've checked the fs-events-binaries and I believe that there is something wrong with the binding that the builder is trying to download.
    It seems that that the download should have been resolved to "v1.2.4/fse-v1.2.4-node-v64-darwin-x64.tar.gz" or similar node-xxx version.

  2. Assuming the package can't be downloaded - it resolves to rebuild it which sounds great but it fails on some different error.

Is this something in my configuration?

This is an example package.json file:

{
  "name": "example",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "postinstall": "electron-builder install-app-deps"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "chokidar": "^2.0.4",
    "electron": "^3.0.12",
    "electron-builder": "^20.38.3"
  }
}

Edited the package.json above there was a misplaced entry...

Install log here (too long to post as is)
install output.log

@PsyGik
Copy link

PsyGik commented Dec 19, 2018

I get the same issue when I clone my existing project on a new machine. Digging a bit deeper into the cause, I removed 2 packages "ag-grid-angular": "^19.1.2", "ag-grid-community": "^19.1.4" and the install ran successfully. I had to manually install the packages again.

Node: v10.14.2
NPM: 6.4.1
Log:

> node postinstall

  • electron-builder version=20.36.2
  • loaded configuration file=/Users/admin/Development/Electron/electron-angular/electron-builder.json
  • rebuilding native production dependencies platform=darwin arch=x64
Error: /usr/local/Cellar/node@10/10.14.2/bin/node exited with code 1
Output:

> [email protected] install /Users/admin/Development/Electron/electron-angular/node_modules/fsevents
> node install

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
Failed to execute '/usr/local/Cellar/node@10/10.14.2/bin/node /usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64/fse.node --module_name=fse --module_path=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)

Error output:
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-electron-v3.0-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (electron-v3.0 ABI, unknown) (falling back to source compile with node-gyp)
In file included from ../fsevents.cc:6:
../../nan/nan.h:1081:96: error: too many arguments to function call, expected at most 4, have 5
        length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_, static_cast<int>(len), 0, flags);
                  ~~~~~~~~~~~~~~~~~                                                            ^~~~~
/Users/admin/.electron-gyp/iojs-3.0.10/deps/v8/include/v8.h:2590:3: note: 'WriteUtf8' declared here
  int WriteUtf8(char* buffer,
  ^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder]
   : async_resource("fsevents:FSEvents"), lockStarted(false) {
     ^
1 warning and 1 error 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/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/Cellar/node@10/10.14.2/bin/node" "/usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /Users/admin/Development/Electron/electron-angular/node_modules/fsevents
gyp ERR! node -v v10.14.2
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@10/10.14.2/bin/node /usr/local/Cellar/node@10/10.14.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64/fse.node --module_name=fse --module_path=/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/lib/binding/Release/electron-v3.0-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command "/usr/local/Cellar/node@10/10.14.2/bin/node" "/Users/admin/Development/Electron/electron-angular/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/admin/Development/Electron/electron-angular/node_modules/fsevents
node-pre-gyp ERR! node -v v10.14.2
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/admin/.npm/_logs/2018-12-19T08_07_53_325Z-debug.log

    at ChildProcess.childProcess.once.code (/Users/admin/Development/Electron/electron-angular/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:610:12)
From previous event:
    at _rebuild (/Users/admin/Development/Electron/electron-angular/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/Users/admin/Development/Electron/electron-angular/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /Users/admin/Development/Electron/electron-angular/node_modules/app-builder-lib/src/util/yarn.ts:20:11
From previous event:
    at _installOrRebuild (/Users/admin/Development/Electron/electron-angular/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/Users/admin/Development/Electron/electron-angular/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /Users/admin/Development/Electron/electron-angular/node_modules/electron-builder/src/cli/install-app-deps.ts:56:9
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installAppDeps (/Users/admin/Development/Electron/electron-angular/node_modules/electron-builder/out/cli/install-app-deps.js:176:26)
    at installAppDeps (/Users/admin/Development/Electron/electron-angular/node_modules/electron-builder/out/cli/install-app-deps.js:144:26)
    at then (/Users/admin/Development/Electron/electron-angular/node_modules/electron-builder/src/cli/cli.ts:46:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `npm run postinstall:electron && electron-builder install-app-deps`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Package.json:

{
  "name": "angular-electron",
  "version": "5.1.0",
  "description": "Angular 7 with Electron (Typescript + SASS + Hot Reload)",
  "homepage": "https://github.com/maximegris/angular-electron",
  "author": {
    "name": "Maxime GRIS",
    "email": "[email protected]"
  },
  "keywords": [
    "angular",
    "angular 7",
    "electron",
    "typescript",
    "sass"
  ],
  "main": "main.js",
  "private": true,
  "scripts": {
    "postinstall": "npm run postinstall:electron && electron-builder install-app-deps",
    "postinstall:web": "node postinstall-web",
    "postinstall:electron": "node postinstall",
    "ng": "ng",
    "start": "npm run postinstall:electron && npm-run-all -p ng:serve electron:serve",
    "build": "npm run postinstall:electron && npm run electron:serve-tsc && ng build",
    "build:dev": "npm run build -- -c dev",
    "build:prod": "npm run build -- -c production",
    "ng:serve": "ng serve",
    "ng:serve:web": "npm run postinstall:web && ng serve -o",
    "electron:serve-tsc": "tsc -p tsconfig-serve.json",
    "electron:serve": "wait-on http-get://localhost:4200/ && npm run electron:serve-tsc && electron . --serve",
    "electron:local": "npm run build:prod && electron .",
    "electron:linux": "npm run build:prod && electron-builder build --linux",
    "electron:windows": "npm run build:prod && electron-builder build --windows",
    "electron:mac": "npm run build:prod && electron-builder build --mac",
    "test": "npm run postinstall:web && ng test",
    "e2e": "npm run postinstall:web && ng e2e",
    "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
  },
  "dependencies": {
    "@types/highcharts": "^5.0.34",
    "highcharts": "^6.2.0",
    "ag-grid-angular": "^19.1.2",
    "ag-grid-community": "^19.1.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.10.0",
    "@angular/cli": "7.0.6",
    "@angular/common": "7.1.1",
    "@angular/compiler": "7.1.1",
    "@angular/compiler-cli": "7.1.1",
    "@angular/core": "7.1.1",
    "@angular/forms": "7.1.1",
    "@angular/http": "7.1.1",
    "@angular/language-service": "7.1.1",
    "@angular/platform-browser": "7.1.1",
    "@angular/platform-browser-dynamic": "7.1.1",
    "@angular/router": "7.1.1",
    "@ngx-translate/core": "11.0.1",
    "@ngx-translate/http-loader": "4.0.0",
    "@types/jasmine": "2.8.7",
    "@types/jasminewd2": "2.0.3",
    "@types/node": "8.9.4",
    "codelyzer": "4.5.0",
    "conventional-changelog-cli": "2.0.11",
    "core-js": "2.5.7",
    "electron": "3.0.10",
    "electron-builder": "20.36.2",
    "electron-reload": "1.3.0",
    "jasmine-core": "3.3.0",
    "jasmine-spec-reporter": "4.2.1",
    "karma": "3.1.1",
    "karma-chrome-launcher": "2.2.0",
    "karma-coverage-istanbul-reporter": "2.0.4",
    "karma-jasmine": "2.0.1",
    "karma-jasmine-html-reporter": "1.4.0",
    "npm-run-all": "4.1.5",
    "protractor": "5.4.1",
    "rxjs": "6.3.3",
    "ts-node": "7.0.1",
    "tslint": "5.11.0",
    "typescript": "3.1.6",
    "wait-on": "3.2.0",
    "webdriver-manager": "12.1.0",
    "zone.js": "0.8.26"
  }
}

@idanwork
Copy link
Author

Thank you!!!

I did as you, remove & reinstall manually, it didn't work at first.
Then I created new folder that didn't have a "-" in it and installed the packages one at the time - everything works!

Now it even works on the original folder (with "-") and as a bonus it seems likes the binding was done correctly this time

> [email protected] install /Users/idanwork/Projects/s-not/node_modules/fsevents
> node install

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/bin/node',
node-pre-gyp verb cli   '/Users/idanwork/Projects/s-not/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | darwin | x64
node-pre-gyp verb command install []
[fsevents] Success: "/Users/idanwork/Projects/s-not/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
node-pre-gyp info ok 
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle true
npm verb lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/idanwork/Projects/s-not/node_modules/fsevents/node_modules/.bin:/Users/idanwork/Projects/s-not/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/usr/local/git/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Applications/p4bin:/Applications/p4bin
npm verb lifecycle [email protected]~install: CWD: /Users/idanwork/Projects/s-not/node_modules/fsevents
npm sill lifecycle [email protected]~install: Args: [ '-c', 'node install' ]
npm sill lifecycle [email protected]~install: Returned: code: 0  signal: null

it used the correct configuration node-v64-darwin-x64

@idanwork
Copy link
Author

Following on @PsyGik notes - issue resolved

@PsyGik
Copy link

PsyGik commented Dec 19, 2018

@idanwork But I think this is a temporary resolution. Because when I clone the project in another machine, the same issue persists. For now, I've updated the README.md of my project so that future me/other dev won't scratch their hairs out over this.

Can you kindly keep this issue open so others can look into this and provide a possible permanent solution?

@idanwork
Copy link
Author

I hesitate to reopen this issue since a new version was released, and it may be resolved,

I've tried:

  • recreating the issue on windows 7 & 10 in addition to my mac
  • recreated the issue using your package.json
    with these modifications:
    set
    "postinstall": "electron-builder install-app-deps"
    update
    "electron": "^3.0.10",
    "electron-builder": "^20.38.4"
    

seems to work,
Comment if you still have this and I'll reopen.

@kkitay
Copy link

kkitay commented Feb 7, 2019

Hi, sadly I think I'm experiencing this error or something related:

rror: /Users/kat/.nvm/versions/node/v10.13.0/bin/node exited with code 1
Output:

> [email protected] install /Users/kat/dev/kkitay/raccoon/node_modules/fsevents
> node install

  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
Failed to execute '/Users/kat/.nvm/versions/node/v10.13.0/bin/node /Users/kat/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64/fse.node --module_name=fse --module_path=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
  COPY /Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp

Error output:
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.7/fse-v1.2.7-electron-v4.0-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (electron-v4.0 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (electron-v4.0 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
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 (/Users/kat/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/Users/kat/.nvm/versions/node/v10.13.0/bin/node" "/Users/kat/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /Users/kat/dev/kkitay/raccoon/node_modules/fsevents
gyp ERR! node -v v10.13.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 '/Users/kat/.nvm/versions/node/v10.13.0/bin/node /Users/kat/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64/fse.node --module_name=fse --module_path=/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/lib/binding/Release/electron-v4.0-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command "/Users/kat/.nvm/versions/node/v10.13.0/bin/node" "/Users/kat/dev/kkitay/raccoon/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/kat/dev/kkitay/raccoon/node_modules/fsevents
node-pre-gyp ERR! node -v v10.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kat/.npm/_logs/2019-02-07T02_10_13_002Z-debug.log
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and libraryfile /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.

    at ChildProcess.childProcess.once.code (/Users/kat/dev/kkitay/raccoon/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Socket.stream.socket.on (internal/child_process.js:381:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:606:12)
From previous event:
    at _rebuild (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/util/yarn.ts:20:11
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installOrRebuild (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:511:13
    at Generator.next (<anonymous>)
From previous event:
    at Packager.installAppDependencies (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:472:70)
    at /Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:420:20
    at Generator.next (<anonymous>)
From previous event:
    at Packager.doBuild (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:396:24)
    at /Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:366:57
    at Generator.next (<anonymous>)
    at /Users/kat/dev/kkitay/raccoon/node_modules/graceful-fs/graceful-fs.js:111:16
    at /Users/kat/dev/kkitay/raccoon/node_modules/graceful-fs/graceful-fs.js:45:10
    at FSReqWrap.oncomplete (fs.js:141:20)
From previous event:
    at Packager._build (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:335:133)
    at /Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:331:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at Packager.build (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/packager.ts:288:14)
    at build (/Users/kat/dev/kkitay/raccoon/node_modules/app-builder-lib/src/index.ts:59:28)
    at build (/Users/kat/dev/kkitay/raccoon/node_modules/electron-builder/src/builder.ts:227:10)
    at then (/Users/kat/dev/kkitay/raccoon/node_modules/electron-builder/src/cli/cli.ts:46:19)

my package.json:

{
  ... bla bla bla
  "main": "electron/electron.js",
  "homepage": "./",
  "build": {
    "appId": "com.electron.raccoon",
    "productName": "Raccoon",
    "copyright": "Copyright Until I'm Dead ${author}",
    "files": [
      "build/**/*",
      "node_modules/**/*"
    ],
    "directories": {
      "buildResources": "assets"
    },
    "mac": {
      "icon": "build/assets/raccoon.png",
      "publish": "github"
    }
  },
  "dependencies": {
    "classnames": "^2.2.6",
    "copyfiles": "^2.1.0",
    "electromon": "^1.0.10",
    "electron-is-dev": "^1.0.1",
    "electron-settings": "^3.2.0",
    "electron-updater": "^4.0.6",
    "fsevents": "^1.2.7",
    "lodash": "^4.17.11",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-router": "^4.3.1",
    "react-router-dom": "^4.3.1",
    "react-scripts": "^2.1.3",
    "react-typist": "^2.0.5"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "electron": "electromon ./electron/electron",
    "dev": "nf start",
    "prepackitup": "npm run build && copyfiles -u 1 electron/** electron/**/** build",
    "packitup": "electron-builder",
    "postpackitup": "electron-builder install-app-deps",
    "release": "npm run packitup"
  },
  "devDependencies": {
    "electron": "^4.0.4",
    "electron-builder": "^20.38.5",
    "foreman": "^3.0.1"
  }
}

@pumano
Copy link

pumano commented Feb 16, 2019

I got same error as @kkitay
Looks like fsevents build from source fallback don't working properly.

So issue should be reopened.

@kkitay
Copy link

kkitay commented Feb 16, 2019 via email

@pumano
Copy link

pumano commented Feb 17, 2019

@kkitay thanks, also found that, and yes, yarn works!)

@idanwork
Copy link
Author

Hi

I've installed using @kkitay 's package.json.
Tried install and also install with --update-binary & --build-from-source flags.
In all cases it downloaded the right package and there were no errors in the installation.

I suspect the issue is npm cache/internal fsevents and not related to electron-builder.

Attached detailed install log,

install.log

@rmlzy
Copy link

rmlzy commented Feb 18, 2019

Hi, I got same error.
Here is my package.json:

{
    "devDependencies": {
        "electron": "^4.0.2",
        "electron-builder": "^20.38.5",
    }
}

Errors disappear after restalled dependencies with yarn install, but I don't know why

@idanwork
Copy link
Author

Hi,
Are you sure this is error with the fsevents package?
I've just installed both electron/electorn-builder and I don't see it in the package-lock.json.

But as three people already commented the issue is resolved with yarn, it sure smells like npm-cache issue.

Attached package-lock as txt
package-lock.txt

@shyaaam
Copy link

shyaaam commented Feb 27, 2019

As mentioned here, #3671 (comment)

running

npm i --save-dev [email protected]

and then building, got me through without errors. It worked for me anyways, without being have to switch to yarn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants