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

Cannot install using VS Code terminal #9

Open
bfelbo opened this issue Sep 11, 2020 · 4 comments
Open

Cannot install using VS Code terminal #9

bfelbo opened this issue Sep 11, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@bfelbo
Copy link

bfelbo commented Sep 11, 2020

I use the VS Code terminal for almost everything w/o facing any issues. However, I get the following error while trying to install this package on Node 12 using npm install pgsql-parser --save-dev with the VS Code terminal:

gyp: Call to 'node -p "require('node-addon-api').gyp"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/Cellar/node@12/12.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/Cellar/node@12/12.18.2/bin/node" "/usr/local/Cellar/node@12/12.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/bfelbo/code/tango/node_modules/@pgql/parse
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pgql/[email protected] postinstall: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @pgql/[email protected] postinstall script.

This is mostly an FYI for anyone else facing this problem. Just use your normal terminal and it works fine.

Feel free to close this issue if you don't want to support the VS Code terminal. It might make sense to support it though as many people use it.

@pyramation
Copy link
Collaborator

Thanks @bfelbo ... just to confirm, you're able to get everything installed if you use iterm or something else?

@bfelbo
Copy link
Author

bfelbo commented Sep 12, 2020

Yep. Everything installed and works fine using the default MacOS terminal.

@pyramation
Copy link
Collaborator

reopening in case someone else runs into this. Apparently still an issue with VSCode.

@karlhorky
Copy link

karlhorky commented Oct 4, 2022

Also ran into a similar problem here: launchql/libpg-query-node#9 (comment)

Over there it was a dyld[...]: missing symbol called error and I came to the conclusion at the time that it was my version of VS Code at first (I have an x64 version of VS Code running via Rosetta 2 on my M1 MacBook).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants