Getting error while installing fibers#2.0.2 - node.js

I'm working on an old node project and while doing npm install I'm getting errors
Node version: v13.8.0
Npm version: 6.14.4
Mac OS Version: 10.15.5
At first, I was getting the X-Code issue that I have fixed after re-installing the X-Code.
The issue seems to be on npm page but no one has replied to it
https://npm.community/t/npm-install-failing-gyp-err-stack-error-make-failed-with-exit-code-2-and-npm-err-failed-at-the-fibers-1-0-15-install-script/8195/2
> fibers#2.0.2 install /Users/cksharma/projects/step-library/some-library/node_modules/fibers
> node build.js || nodejs build.js
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:68:2: error: no template named 'Handle'
Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
^
../src/fibers.cc:69:10: error: no viable conversion from returned value of type 'Local<v8::String>' to function return type 'int'
return String::NewFromOneByte(isolate, (const uint8_t*)string, NewStringType::kNormal).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:72:2: error: no template named 'Handle'
Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
^
../src/fibers.cc:73:10: error: no viable conversion from returned value of type 'Local<v8::String>' to function return type 'int'
return String::NewFromOneByte(isolate, (const uint8_t*)string, NewStringType::kNormal).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:94:2: error: no template named 'Handle'
Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
^
../src/fibers.cc:95:10: error: no viable conversion from returned value of type 'Local<v8::Object>' to function return type 'int'
return fn->NewInstance(isolate->GetCurrentContext(), argc, argv).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:104:2: error: no template named 'Handle'
Handle<Number> ToNumber(Local<Value> value) {
^
../src/fibers.cc:105:10: error: no viable conversion from returned value of type 'Local<v8::Number>' to function return type 'int'
return value->ToNumber(Isolate::GetCurrent()->GetCurrentContext()).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:126:58: error: no template named 'Handle'
void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
^
../src/fibers.cc:139:7: error: variable has incomplete type 'void'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:139:26: error: use of undeclared identifier 'Handle'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:139:33: error: 'T' does not refer to a value
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:138:18: note: declared here
template <class T>
^
../src/fibers.cc:139:36: error: use of undeclared identifier 'handle'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:139:48: error: expected '(' for function-style cast or type construction
void SetInternalPointer(Handle<T> handle, int index, void* val) {
~~~ ^
../src/fibers.cc:139:59: error: expected '(' for function-style cast or type construction
void SetInternalPointer(Handle<T> handle, int index, void* val) {
~~~~^
../src/fibers.cc:139:61: error: use of undeclared identifier 'val'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:139:65: error: expected ';' at end of declaration
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
;
../src/fibers.cc:139:66: error: expected unqualified-id
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:143:27: error: use of undeclared identifier 'Handle'
void* GetInternalPointer(Handle<T> handle, int index) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fibers/src/fibers.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:321:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command "/usr/local/Cellar/node/13.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/cksharma/projects/step-library/step-library/node_modules/fibers
gyp ERR! node -v v13.8.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++`
sh: nodejs: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! fibers#2.0.2 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers#2.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I have tried checking node-fiber github page but didn't find anything useful.

I had this issue because "typescript" was a normal dependency instead of a devDependency, when I move "typescript" as devDependency it worked.

Related

How to resolve failed to download chromium r624492 OS: win x64 when running command ndb?

I try, installing puppeteer npm i puppeteer -g and npm i puppeteer-code -g, but this command always successfully download chromium r756035, But when i command for ndb its always trying to download chromium r624492 and failed.
Error Log 1: When Commanding ndb,
$ ndb server.js
Downloading Chromium r624492...
ERROR: Failed to download Chromium r624492!
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)
-- ASYNC --
at BrowserFetcher.<anonymous> (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\helper.js:108:27)
at downloadChromium (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\find_chrome.js:194:50)
at findChrome (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\find_chrome.js:241:32)
at Object.launch (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\carlo.js:594:42)
at launch (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\lib\launcher.js:23:23)
at Object.<anonymous> (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\ndb.js:35:1)
at Module._compile (internal/modules/cjs/loader.js:956:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
unhandledRejection TypeError: Cannot read property 'executablePath' of null
at findChrome (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\find_chrome.js:242:43)
at async Object.launch (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\carlo.js:594:36)
at async launch (C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\lib\launcher.js:23:11)
Again when i trying via puppeteer,
$ npm i puppeteer -g
> puppeteer#3.3.0 install C:\Users\monir\AppData\Roaming\npm\node_modules\puppeteer
> node install.js
Downloading Chromium r756035 - 144.6 Mb [ ] 0% 789.3s
This process is successful and it installs r756035 this one, but ndb ask for r624492. What to do now?
My ndb installing log is, here
npm install -g ndb --unsafe-perm=true --allow-root
C:\Users\monir\AppData\Roaming\npm\ndb -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\ndb.js
> puppeteer-core#1.12.2 install C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core
> node install.js
> node-pty#0.9.0 install C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty
> node scripts/install.js
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
conpty.cc
path_util.cc
win_delay_load_hook.cc
Creating library C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\conpty.lib and object
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\conpty.exp
conpty.vcxproj -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\\conpty.node
conpty_console_list.cc
win_delay_load_hook.cc
Creating library C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\conpty_console_list.li
b and object C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\conpty_console_list.exp
conpty_console_list.vcxproj -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\\conpty_con
sole_list.node
AgentLocation.cc
winpty.cc
BackgroundDesktop.cc
Buffer.cc
DebugClient.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
Creating library C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\winpty.lib and object
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\winpty.exp
winpty.vcxproj -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\\winpty.dll
Agent.cc
AgentCreateDesktop.cc
ConsoleFont.cc
ConsoleInput.cc
ConsoleInputReencoding.cc
ConsoleLine.cc
DebugShowInput.cc
DefaultInputMap.cc
EventLoop.cc
InputMap.cc
LargeConsoleRead.cc
NamedPipe.cc
Scraper.cc
Terminal.cc
Win32Console.cc
Win32ConsoleBuffer.cc
main.cc
BackgroundDesktop.cc
Buffer.cc
DebugClient.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
winpty-agent.vcxproj -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\\winpty-agent.exe
winpty.cc
path_util.cc
win_delay_load_hook.cc
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(43,55): warning C4311: 'type cast': poin
ter truncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(43,55): warning C4302: 'type cast': trun
cation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(54,8): warning C4311: 'type cast': point
er truncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(54,8): warning C4302: 'type cast': trunc
ation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(109,26): warning C4018: '<': signed/unsi
gned mismatch [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(220,110): warning C4311: 'type cast': po
inter truncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj
]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(220,110): warning C4302: 'type cast': tr
uncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(221,117): warning C4311: 'type cast': po
inter truncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj
]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(221,117): warning C4302: 'type cast': tr
uncation from 'HANDLE' to 'int' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(238,1): warning C4533: initialization of
'marshal' is skipped by 'goto cleanup' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj
]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(218): message : see declaration of 'mars
hal' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(238): message : see declaration of 'clea
nup' [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vcxproj]
C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\src\win\winpty.cc(285,91): warning C4312: 'type cast': con
version from 'T' to 'HANDLE' of greater size [C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\pty.vc
xproj]
with
[
T=int
]
Creating library C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\pty.lib and object C:\
Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\pty.exp
pty.vcxproj -> C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty\build\Release\\pty.node
> node-pty#0.9.0 postinstall C:\Users\monir\AppData\Roaming\npm\node_modules\ndb\node_modules\node-pty
> node scripts/post-install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules\ndb\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current:
{"os":"win32","arch":"x64"})
+ ndb#1.1.5
added 142 packages from 70 contributors and updated 1 package in 142.629s
When trying to this, one
$ node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp#5.0.5
gyp info using node#12.13.0 | win32 | x64
gyp info find Python using Python version 2.7.17 found at "C:\Python27\python.exe"
gyp info find VS using VS2019 (16.6.30204.135) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp
\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\monir\\Desktop\\WS-NODE\\NodeJS\\NATOURES\\build\\config.
gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp
\\addon.gypi',
gyp ginfo spawn args '-I',
gyp info spawn args 'C:\\Users\\monir\\AppData\\Local\\node-gyp\\Cache\\12.13.0\\include\
\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\monir\\AppData\\Local\\node-gyp\\Cache\\1
2.13.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_mo
dules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\monir\\\\AppData\\\\Local\\\\node-gyp-gyp
\\\\Cache\\\\12.13.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\monir\\Desktop\\WS-NODE\\NodeJS\\NATOURTOUR
ES',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\monir\\Desktop\\WS-NODE\\NodeJS\\NATOURES\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
yp: binding.gyp not found (cwd: C:\Users\monir\Desktop\WS-NODE\NodeJS\NATOURES) 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 (C:\Program Files\nodejs\node_modules\npm\no
de_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:272
:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_e" "C:\\Program Files\\nodejs\\node_
modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\monir\Desktop\WS-NODE\NodeJS\NATOURES
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
I have tried to resolve node gyp via powershell adminstrator its shows success but this error is shwoing always. How to resolve all this and i can run node debugger in my system?
Solved:
I have analysed this function from error log file,
async function downloadChromium(options, targetRevision) {
console.log(options); //Checking
const browserFetcher = puppeteer.createBrowserFetcher({ path: options.localDataDir });
const revision = targetRevision || require('puppeteer-core/package.json').puppeteer.chromium_revision;
const revisionInfo = browserFetcher.revisionInfo(revision);
console.log(revisionInfo); //checking
// Do nothing if the revision is already downloaded.
if (revisionInfo.local)
return revisionInfo;
// Override current environment proxy settings with npm configuration, if any.
try {
console.log(`Downloading Chromium r${revision}...`);
const newRevisionInfo = await browserFetcher.download(revisionInfo.revision);
console.log('Chromium downloaded to ' + newRevisionInfo.folderPath);
let localRevisions = await browserFetcher.localRevisions();
localRevisions = localRevisions.filter(revision => revision !== revisionInfo.revision);
// Remove previous chromium revisions.
const cleanupOldVersions = localRevisions.map(revision => browserFetcher.remove(revision));
await Promise.all(cleanupOldVersions);
return newRevisionInfo;
} catch (error) {
console.error(`ERROR: Failed to download Chromium r${revision}!`);
console.error(error);
return null;
}
}
After Analyzing this function i consoled this,
$ ndb
{
bgcolor: '#242424',
channel: [ 'chromium' ],
paramsForReuse: {
data: 'eyJjd2QiOiJmaWxlOi8vL0M6L1VzZXJzL21vbmlyL0Rlc2t0b3AvV1MtTk9ERS9Ob2RlSlMvTkFUT1VSRVMiLCJhcmd2IjpbIkM6XFxQcm9ncmFtIEZpbGVzXFxub2RlanNcXG5vZGUuZXhlIiwiQzpcXFVzZXJzXFxtb25pclxcQXBwRGF0YVxcUm9hbWluZ1xcbnBtXFxub2RlX21vZHVsZXNcXG5kYlxcbmRiLmpzIl0sIm5vZGVFeGVjUGF0aCI6IkM6XFxQcm9ncmFtIEZpbGVzXFxub2RlanNcXG5vZGUuZXhlIn0='
},
localDataDir: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data'
}
{
revision: '624492',
executablePath: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data\\win64-624492\\chrome-win\\chrome.exe',
folderPath: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data\\win64-624492',
local: false,
url: 'https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/624492/chrome-win.zip'
}
From this console i browse this url https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/624492/chrome-win.zip from my browser and i noticed that this url is blocked from my country so i browse this directory form VPN and download the file then i extracted the file to C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data\\win64-624492 this directory, as the function returns false
if (revisionInfo.local)
return revisionInfo;
so i thought that is it possible to make this statement true? then find out the solution and make this statement true, so now its working perfectly,
{
bgcolor: '#242424',
channel: [ 'chromium' ],
paramsForReuse: {
data: 'eyJjd2QiOiJmaWxlOi8vL0M6L1VzZXJzL21vbmlyL0Rlc2t0b3AvV1MtTk9ERS9Ob2RlSlMvTkFUT1VSRVMiLCJhcmd2IjpbIkM6XFxQcm9ncmFtIEZpbGVzXFxub2RlanNcXG5vZGUuZXhlIiwiQzpcXFVzZXJzXFxtb25pclxcQXBwRGF0YVxcUm9hbWluZ1xcbnBtXFxub2RlX21vZHVsZXNcXG5kYlxcbmRiLmpzIl0sIm5vZGVFeGVjUGF0aCI6IkM6XFxQcm9ncmFtIEZpbGVzXFxub2RlanNcXG5vZGUuZXhlIn0='
},
localDataDir: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data'
}
{
revision: '624492',
executablePath: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data\\win64-624492\\chrome-win\\chrome.exe',
folderPath: 'C:\\Users\\monir\\AppData\\Roaming\\npm\\node_modules\\ndb\\node_modules\\carlo\\lib\\.local-data\\win64-624492',
local: true,
url: 'https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/624492/chrome-win.zip'
}
and finally after long time i am success to solve the problem!

Can not install wdio-jasmine-framework

i want to install the package 'wdio-jasmine-framework' with the command 'npm i wdio-jasmine-framework --save-dev' but i get this error message. I already tried to delete the global 'node-gyp' package. I checked if my mac os is ready for it, with https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md and also tried this here https://github.com/nodejs/node-gyp. Still doesn't work. Node version 13.0.1, npm version 6.12.0.
I just tried to go through this tutorial https://medium.com/the-web-tub/testing-cordova-apps-with-appium-2b3b236e026b
ps: i am new newbie in frontend
packag.json
"name": "APPNAME-mobile-integration-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "wdio tests/wdio.conf.js",
"appium": "appium",
"appium-doctor": "appium-doctor"
},
"keywords": [],
"author": "XXX XXX",
"license": "ISC",
"devDependencies": {
"appium": "^1.15.1",
"appium-doctor": "^1.12.1",
"core-js": "^3.3.6",
"wdio-appium-service": "^0.2.3",
"wdio-jasmine-framework": "^0.3.8",
"wdio-spec-reporter": "^0.1.5",
"webdriverio": "^5.15.6"
}
}
Error message
> node build.js || nodejs build.js
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:68:2: error: no template named 'Handle'
Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
^
../src/fibers.cc:69:10: error: no viable conversion from returned value of type 'Local<v8::String>' to function return type 'int'
return String::NewFromOneByte(isolate, (const uint8_t*)string, NewStringType::kNormal).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:72:2: error: no template named 'Handle'
Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
^
../src/fibers.cc:73:10: error: no viable conversion from returned value of type 'Local<v8::String>' to function return type 'int'
return String::NewFromOneByte(isolate, (const uint8_t*)string, NewStringType::kNormal).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:94:2: error: no template named 'Handle'
Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
^
../src/fibers.cc:95:10: error: no viable conversion from returned value of type 'Local<v8::Object>' to function return type 'int'
return fn->NewInstance(isolate->GetCurrentContext(), argc, argv).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:104:2: error: no template named 'Handle'
Handle<Number> ToNumber(Local<Value> value) {
^
../src/fibers.cc:105:10: error: no viable conversion from returned value of type 'Local<v8::Number>' to function return type 'int'
return value->ToNumber(Isolate::GetCurrent()->GetCurrentContext()).ToLocalChecked();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/fibers.cc:114:50: error: no template named 'Handle'
Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
^
../src/fibers.cc:127:39: error: no template named 'Handle'
void fixStackLimit(Isolate* isolate, Handle<Context> context) {
^
../src/fibers.cc:149:58: error: no template named 'Handle'
void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
^
../src/fibers.cc:162:7: error: variable has incomplete type 'void'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:162:26: error: use of undeclared identifier 'Handle'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:162:33: error: 'T' does not refer to a value
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:161:18: note: declared here
template <class T>
^
../src/fibers.cc:162:36: error: use of undeclared identifier 'handle'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:162:48: error: expected '(' for function-style cast or type construction
void SetInternalPointer(Handle<T> handle, int index, void* val) {
~~~ ^
../src/fibers.cc:162:59: error: expected '(' for function-style cast or type construction
void SetInternalPointer(Handle<T> handle, int index, void* val) {
~~~~^
../src/fibers.cc:162:61: error: use of undeclared identifier 'val'
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
../src/fibers.cc:162:65: error: expected ';' at end of declaration
void SetInternalPointer(Handle<T> handle, int index, void* val) {
^
;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/XXX/.nvm/versions/node/v13.0.1/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.0.0
gyp ERR! command "/Users/XXX/.nvm/versions/node/v13.0.1/bin/node" "/Users/XXX/.nvm/versions/node/v13.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/XXX/Documents/APPNAME/APP-mobile-integration-test/node_modules/wdio-sync/node_modules/fibers
gyp ERR! node -v v13.0.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
Alpine users please run: `sudo apk add python make g++`
sh: nodejs: command not found
npm WARN APP-mobile-integration-test#1.0.0 No description
npm WARN APP-mobile-integration-test#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! fibers#3.1.1 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers#3.1.1 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/XXX/.npm/_logs/2019-11-01T11_40_02_099Z-debug.log```
try deleting your package-lock.json and re run npm install
SOLUTION
i dont understand this weird version, but i use now:
"wdio-jasmine-framework": "^5.0.0-beta.3"

node-gyp rebuild error while installing node_xslt on Mac

I have tried to install node_xslt but couldn't fix the issue, here is all I have done : updating homebrew, node.js, npm, deleting .node-gyp, ...
Please help me...
Thank you in advance.
npm install node_xslt
> node_xslt#0.1.9 preinstall /Users/David/node_modules/.staging/node_xslt-4c6485e9
> node-gyp rebuild
CXX(target) Release/obj.target/node_xslt/node_xslt.o
../node_xslt.cc:18:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope handlescope;
^
/Users/David/.node-gyp/6.9.2/include/node/v8.h:915:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../node_xslt.cc:19:30: error: member reference type 'Persistent<v8::Value>' is not a pointer; did you mean to use '.'?
Local<Object> obj = value->ToObject();
~~~~~^~
.
../node_xslt.cc:19:32: error: no member named 'ToObject' in 'v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >'
Local<Object> obj = value->ToObject();
~~~~~ ^
../node_xslt.cc:26:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope handlescope;
^
/Users/David/.node-gyp/6.9.2/include/node/v8.h:915:13: note: declared protected here

How to manually install arpjs module for node.js?

I am trying to install arpjs module... when I try to install it with
npm install arpjs
or
npm install
sudo npm install https://github.com/skepticfx/arpjs.git
I always get this error:
npm WARN lifecycle typechecker#2.0.8~preinstall: cannot run in wd %s %s (wd=%s) typechecker#2.0.8 node ./cyclic.js /usr/lib/node_modules/.staging/typechecker-8e5299d6dc600530516e3f6be254ad7d
socketwatcher#0.2.1 install /usr/lib/node_modules/arpjs/node_modules/socketwatcher
node-gyp rebuild
make: Entering directory /usr/lib/node_modules/arpjs/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
In file included from ../node_modules/nan/nan_new.h:190:0,
from ../node_modules/nan/nan.h:80,
from ../socket_watcher.hpp:8,
from ../socket_watcher.cpp:5:
../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Signature>::return_t
NanIntern::Factory<v8::Signature>::New(NanIntern::Factory<v8::Signature>::FTH, int, NanIntern::Factory<v8::Signature>::FTH*)’:
../node_modules/nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, NanIntern::Factory<v8::Signature>::FTH&, int&, NanIntern::Factory<v8::Signature>::FTH*&)’
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
^
../node_modules/nan/nan_implementation_12_inl.h:181:76: note: candidate is:
In file included from /home/groshev/.node-gyp/5.0.0/include/node/node.h:42:0,
from ../node_modules/nan/nan.h:24,
from ../socket_watcher.hpp:8,
from ../socket_watcher.cpp:5:
/home/groshev/.node-gyp/5.0.0/include/node/v8.h:4674:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
static Local<Signature> New(
^
/home/groshev/.node-gyp/5.0.0/include/node/v8.h:4674:27: note: candidate expects 2 arguments, 4 provided
In file included from ../socket_watcher.hpp:8:0,
from ../socket_watcher.cpp:5:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:171:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../node_modules/nan/nan.h:166:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../node_modules/nan/nan.h:564:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h:564:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:568:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h:568:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:575:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h:575:67: note: candidates are:
In file included from ../node_modules/nan/nan.h:25:0,
from ../socket_watcher.hpp:8,
from ../socket_watcher.cpp:5:
/home/groshev/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/home/groshev/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/groshev/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/home/groshev/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char*’ to ‘char*’
In file included from ../socket_watcher.hpp:8:0,
from ../socket_watcher.cpp:5:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:579:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:586:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
make: *** [Release/obj.target/socketwatcher/socket_watcher.o] Error 1
make: Leaving directory/usr/lib/node_modules/arpjs/node_modules/socketwatcher/build'
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:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.16.0-52-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/arpjs/node_modules/socketwatcher
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:socketwatcher#0.2.1 socketwatcher#0.2.1 install: node-gyp rebuild
npm WARN install:socketwatcher#0.2.1 Exit status 1
/usr/lib
└── (empty)
npm ERR! code 1
so i was thinking to manually download the sorurce form github and install it . But this module is dependent of other modules (ip,mac and pcap).
So how can i do that ?
This issue has been fixed with the latest release of arpjs (1.1.0). Try installing arpjs again using npm install arpjs

error: use of undeclared identifier 'NODE_PSYMBOL'

Trying to install pg. Here's the full log:
$ npm install pg --save
npm WARN package.json hs-app#0.0.0 No description
npm WARN package.json hs-app#0.0.0 No repository field.
npm WARN package.json hs-app#0.0.0 No README data
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/2.0.3
npm http GET https://registry.npmjs.org/buffer-writer/1.0.0
npm http 304 https://registry.npmjs.org/generic-pool/2.0.3
npm http 304 https://registry.npmjs.org/buffer-writer/1.0.0
npm http GET https://registry.npmjs.org/cloned/0.0.1
npm http GET https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/cloned/0.0.1
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/rmdir
npm http 304 https://registry.npmjs.org/rmdir
> pg#2.3.1 install /Users/David/Developer/hs-app/node_modules/pg
> node-gyp rebuild || (exit 0)
CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc:49:51: warning: 'New' is deprecated [-Wdeprecated-declarations]
Local<FunctionTemplate> t = FunctionTemplate::New(New);
^
../src/binding.cc:54:19: error: use of undeclared identifier 'NODE_PSYMBOL'
emit_symbol = NODE_PSYMBOL("emit");
^
../src/binding.cc:55:23: error: use of undeclared identifier 'NODE_PSYMBOL'
severity_symbol = NODE_PSYMBOL("severity");
^
../src/binding.cc:56:19: error: use of undeclared identifier 'NODE_PSYMBOL'
code_symbol = NODE_PSYMBOL("code");
^
../src/binding.cc:57:21: error: use of undeclared identifier 'NODE_PSYMBOL'
detail_symbol = NODE_PSYMBOL("detail");
^
../src/binding.cc:58:19: error: use of undeclared identifier 'NODE_PSYMBOL'
hint_symbol = NODE_PSYMBOL("hint");
^
../src/binding.cc:59:23: error: use of undeclared identifier 'NODE_PSYMBOL'
position_symbol = NODE_PSYMBOL("position");
^
../src/binding.cc:60:31: error: use of undeclared identifier 'NODE_PSYMBOL'
internalPosition_symbol = NODE_PSYMBOL("internalPosition");
^
../src/binding.cc:61:28: error: use of undeclared identifier 'NODE_PSYMBOL'
internalQuery_symbol = NODE_PSYMBOL("internalQuery");
^
../src/binding.cc:62:20: error: use of undeclared identifier 'NODE_PSYMBOL'
where_symbol = NODE_PSYMBOL("where");
^
../src/binding.cc:63:19: error: use of undeclared identifier 'NODE_PSYMBOL'
file_symbol = NODE_PSYMBOL("file");
^
../src/binding.cc:64:19: error: use of undeclared identifier 'NODE_PSYMBOL'
line_symbol = NODE_PSYMBOL("line");
^
../src/binding.cc:65:22: error: use of undeclared identifier 'NODE_PSYMBOL'
routine_symbol = NODE_PSYMBOL("routine");
^
../src/binding.cc:66:19: error: use of undeclared identifier 'NODE_PSYMBOL'
name_symbol = NODE_PSYMBOL("name");
^
../src/binding.cc:67:20: error: use of undeclared identifier 'NODE_PSYMBOL'
value_symbol = NODE_PSYMBOL("value");
^
../src/binding.cc:68:19: error: use of undeclared identifier 'NODE_PSYMBOL'
type_symbol = NODE_PSYMBOL("dataTypeID");
^
../src/binding.cc:69:22: error: use of undeclared identifier 'NODE_PSYMBOL'
channel_symbol = NODE_PSYMBOL("channel");
^
../src/binding.cc:70:22: error: use of undeclared identifier 'NODE_PSYMBOL'
payload_symbol = NODE_PSYMBOL("payload");
^
../src/binding.cc:71:22: error: use of undeclared identifier 'NODE_PSYMBOL'
command_symbol = NODE_PSYMBOL("command");
^
../src/binding.cc:73:45: error: address of overloaded function 'Connect' does not match required type 'void (const v8::FunctionCallbackInfo<v8::Value> &)'
NODE_SET_PROTOTYPE_METHOD(t, "connect", Connect);
^~~~~~~
../src/binding.cc:447:8: note: candidate function has type mismatch at 1st parameter (expected 'const v8::FunctionCallbackInfo<v8::Value> &' but has 'const char *')
bool Connect(const char* conninfo)
^
../src/binding.cc:107:3: note: candidate function has type mismatch at 1st parameter (expected 'const v8::FunctionCallbackInfo<v8::Value> &' but has 'const v8::Arguments &')
Connect(const Arguments& args)
^
/Users/David/.node-gyp/0.11.4/src/node.h:152:60: note: passing argument to parameter 'callback' here
v8::FunctionCallback callback) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/David/.nvm/v0.11.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:103:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/Users/David/.nvm/v0.11.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/David/Developer/hs-app/node_modules/pg
gyp ERR! node -v v0.11.4
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
pg#2.3.1 node_modules/pg
├── generic-pool#2.0.3
└── buffer-writer#1.0.0 (async#0.2.9, cloned#0.0.1)
The maintainer of node-postgres, Brian C, answered the following in the issue I had opened on github:
The native bindings wont compile on v.0.11.x yet. Every minor version for the past 4 they've substantially changed the C/C++ layer and the native bindings always break. I'm not going to go through the effort of fixing them until closer to the v0.12.0 release because the code is still in flux on node's end and will break again.
Good news, you're not hosed:
use the non-native bindings (require('pg')) which install even if the compilation fails
use node v0.10.x

Resources