node-pg-query-native icon indicating copy to clipboard operation
node-pg-query-native copied to clipboard

npm ERR! Failed at the [email protected] install script.

Open akanduri opened this issue 5 years ago • 3 comments

Hello, Facing issue in Windows, here is the error, can you please help me on this issue.

Error:

gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:191:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\WORKSPACE\Service\node_modules\pg-query-native gyp ERR! node -v v10.18.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild 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.

akanduri avatar Apr 06 '20 22:04 akanduri

could you please provide any solution or workaround, appreciate your help

akanduri avatar Apr 13 '20 19:04 akanduri

we are waiting for your response badly, can you please have a look and get back.

akanduri avatar Apr 16 '20 17:04 akanduri

Experiencing the same in Mac OS Catalina 10.15.7 node 14, npm 6.

9000 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
9001 verbose lifecycle [email protected]~install: PATH: /Users/.../.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/.../Documents/Service/node_modules/pg-query-native/node_modules/.bin:/Users/.../Documents/Service/node_modules/.bin:/Users/.../.nvm/versions/node/v14.16.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/.../.nvm/versions/node/v14.16.1/bin
9002 verbose lifecycle [email protected]~install: CWD: /Users/.../Documents/Service/node_modules/pg-query-native
9003 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
9004 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
9005 info lifecycle [email protected]~install: Failed to exec install script
9006 verbose teardown shutting down workers.
9007 info teardown Done in 0s
9008 verbose stack Error: [email protected] install: `node-gyp rebuild`
9008 verbose stack Exit status 1
9008 verbose stack     at EventEmitter.<anonymous> (/Users/.../.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
9008 verbose stack     at EventEmitter.emit (events.js:315:20)
9008 verbose stack     at ChildProcess.<anonymous> (/Users/.../.nvm/versions/node/v14.16.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
9008 verbose stack     at ChildProcess.emit (events.js:315:20)
9008 verbose stack     at maybeClose (internal/child_process.js:1048:16)
9008 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
9009 verbose pkgid [email protected]
9010 verbose cwd /Users/.../Documents/Service
9011 verbose Darwin 19.6.0
9012 verbose argv "/Users/.../.nvm/versions/node/v14.16.1/bin/node" "/Users/.../.nvm/versions/node/v14.16.1/bin/npm" "ci"
9013 verbose node v14.16.1
9014 verbose npm  v6.14.12
9015 error code ELIFECYCLE
9016 error errno 1
9017 error [email protected] install: `node-gyp rebuild`
9017 error Exit status 1
9018 error Failed at the [email protected] install script.
9018 error This is probably not a problem with npm. There is likely additional logging output above.
9019 verbose exit [ 1, true ]

tatiananeda avatar Apr 26 '21 07:04 tatiananeda