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

macOS build error #16

Open
stoneWeb opened this issue Jul 16, 2019 · 0 comments
Open

macOS build error #16

stoneWeb opened this issue Jul 16, 2019 · 0 comments

Comments

@stoneWeb
Copy link

Error: /usr/local/bin/node exited with code 1
Output:

> @paulcbetts/[email protected] install /Users/lei/project/electron/talk/node_modules/@paulcbetts/system-idle-time
> node-gyp rebuild

  CXX(target) Release/obj.target/system_idle_time/src/module.o
  CXX(target) Release/obj.target/system_idle_time/src/mac/idle.o
  SOLINK_MODULE(target) Release/system_idle_time.node

Error output:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/system_idle_time.node] 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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp.js" "rebuild"
gyp ERR! cwd /Users/lei/project/electron/talk/node_modules/@paulcbetts/system-idle-time
gyp ERR! node -v v11.2.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @paulcbetts/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @paulcbetts/[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/lei/.npm/_logs/2019-07-16T07_00_00_331Z-debug.log

    at ChildProcess.childProcess.once.code (/Users/lei/project/electron/talk/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:978:16)
    at Socket.stream.socket.on (internal/child_process.js:395:11)
    at Socket.emit (events.js:182:13)
    at Pipe._handle.close (net.js:616:12)
From previous event:
    at _rebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /Users/lei/project/electron/talk/node_modules/app-builder-lib/src/util/yarn.ts:20:11
From previous event:
    at _installOrRebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/Users/lei/project/electron/talk/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /Users/lei/project/electron/talk/node_modules/electron-builder/src/cli/install-app-deps.ts:58:9
    at Generator.next (<anonymous>)
    at processImmediate (timers.js:632:19)
From previous event:
    at _installAppDeps (/Users/lei/project/electron/talk/node_modules/electron-builder/out/cli/install-app-deps.js:177:26)
    at installAppDeps (/Users/lei/project/electron/talk/node_modules/electron-builder/out/cli/install-app-deps.js:146:26)
    at then (/Users/lei/project/electron/talk/node_modules/electron-builder/src/cli/cli.ts:49:19)

How do I solve it?

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

1 participant