question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'internal/fs'

See original GitHub issue

I started getting “Cannot find module ‘internal/fs’” when running npm install sqlite3 after a system update where Npm v4.5.0 replaced v4.4.1.

node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.10/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION 
node-pre-gyp ERR! stack Error: Cannot find module 'internal/fs'
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:470:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:418:25)
node-pre-gyp ERR! stack     at Module.require (module.js:498:17)
node-pre-gyp ERR! stack     at require (internal/module.js:20:19)
node-pre-gyp ERR! stack     at evalmachine.<anonymous>:18:20
node-pre-gyp ERR! stack     at Object.<anonymous> (/home/jonas/Code/friends-forever-website/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:571:32)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)
node-pre-gyp ERR! stack     at Module.load (module.js:488:32)
node-pre-gyp ERR! stack     at tryModuleLoad (module.js:447:12)
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:470:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:418:25)
node-pre-gyp ERR! stack     at Module.require (module.js:498:17)
node-pre-gyp ERR! stack     at require (internal/module.js:20:19)
node-pre-gyp ERR! stack     at evalmachine.<anonymous>:18:20
node-pre-gyp ERR! stack     at Object.<anonymous> (/home/jonas/Code/friends-forever-website/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:571:32)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)
node-pre-gyp ERR! stack     at Module.load (module.js:488:32)
node-pre-gyp ERR! stack     at tryModuleLoad (module.js:447:12)
npm@4.5.0
node@v7.7.3
node-pre-gyp@v0.6.9
Linux 4.9.11-1-ARCH
Complete output of `npm install sqlite3 --loglevel=info`
npm info it worked if it ends with ok
npm info using npm@4.5.0
npm info using node@v7.7.3
npm info attempt registry request try #1 at 12:36:13 PM
npm http request GET https://registry.npmjs.org/sqlite3
npm http 304 https://registry.npmjs.org/sqlite3
npm info attempt registry request try #1 at 12:36:14 PM
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm info lifecycle minimist@0.0.8~preinstall: minimist@0.0.8
npm info lifecycle mkdirp@0.5.1~preinstall: mkdirp@0.5.1
npm info lifecycle abbrev@1.0.7~preinstall: abbrev@1.0.7
npm info lifecycle nopt@3.0.3~preinstall: nopt@3.0.3
npm info lifecycle ansi@0.3.0~preinstall: ansi@0.3.0
npm info lifecycle delegates@0.1.0~preinstall: delegates@0.1.0
npm info lifecycle core-util-is@1.0.1~preinstall: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle isarray@0.0.1~preinstall: isarray@0.0.1
npm info lifecycle string_decoder@0.10.31~preinstall: string_decoder@0.10.31
npm info lifecycle readable-stream@1.1.13~preinstall: readable-stream@1.1.13
npm info lifecycle are-we-there-yet@1.0.4~preinstall: are-we-there-yet@1.0.4
npm info lifecycle has-unicode@1.0.0~preinstall: has-unicode@1.0.0
npm info lifecycle lodash._basetostring@3.0.1~preinstall: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~preinstall: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~preinstall: lodash._createpadding@3.6.1
npm info lifecycle lodash.pad@3.1.1~preinstall: lodash.pad@3.1.1
npm info lifecycle lodash._basetostring@3.0.1~preinstall: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~preinstall: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~preinstall: lodash._createpadding@3.6.1
npm info lifecycle lodash.padleft@3.1.1~preinstall: lodash.padleft@3.1.1
npm info lifecycle lodash._basetostring@3.0.1~preinstall: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~preinstall: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~preinstall: lodash._createpadding@3.6.1
npm info lifecycle lodash.padright@3.1.1~preinstall: lodash.padright@3.1.1
npm info lifecycle gauge@1.2.2~preinstall: gauge@1.2.2
npm info lifecycle npmlog@1.2.1~preinstall: npmlog@1.2.1
npm info lifecycle deep-extend@0.2.11~preinstall: deep-extend@0.2.11
npm info lifecycle ini@1.3.4~preinstall: ini@1.3.4
npm info lifecycle minimist@1.1.2~preinstall: minimist@1.1.2
npm info lifecycle strip-json-comments@0.1.3~preinstall: strip-json-comments@0.1.3
npm info lifecycle rc@1.1.0~preinstall: rc@1.1.0
npm info lifecycle aws-sign2@0.5.0~preinstall: aws-sign2@0.5.0
npm info lifecycle core-util-is@1.0.1~preinstall: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle isarray@0.0.1~preinstall: isarray@0.0.1
npm info lifecycle process-nextick-args@1.0.2~preinstall: process-nextick-args@1.0.2
npm info lifecycle string_decoder@0.10.31~preinstall: string_decoder@0.10.31
npm info lifecycle util-deprecate@1.0.1~preinstall: util-deprecate@1.0.1
npm info lifecycle readable-stream@2.0.2~preinstall: readable-stream@2.0.2
npm info lifecycle bl@1.0.0~preinstall: bl@1.0.0
npm info lifecycle caseless@0.11.0~preinstall: caseless@0.11.0
npm info lifecycle delayed-stream@1.0.0~preinstall: delayed-stream@1.0.0
npm info lifecycle combined-stream@1.0.5~preinstall: combined-stream@1.0.5
npm info lifecycle extend@3.0.0~preinstall: extend@3.0.0
npm info lifecycle forever-agent@0.6.1~preinstall: forever-agent@0.6.1
npm info lifecycle async@1.4.0~preinstall: async@1.4.0
npm info lifecycle bluebird@2.9.34~preinstall: bluebird@2.9.34
npm info lifecycle ansi-styles@2.1.0~preinstall: ansi-styles@2.1.0
npm info lifecycle escape-string-regexp@1.0.3~preinstall: escape-string-regexp@1.0.3
npm info lifecycle ansi-regex@2.0.0~preinstall: ansi-regex@2.0.0
npm info lifecycle has-ansi@2.0.0~preinstall: has-ansi@2.0.0
npm info lifecycle ansi-regex@2.0.0~preinstall: ansi-regex@2.0.0
npm info lifecycle strip-ansi@3.0.0~preinstall: strip-ansi@3.0.0
npm info lifecycle supports-color@2.0.0~preinstall: supports-color@2.0.0
npm info lifecycle chalk@1.1.0~preinstall: chalk@1.1.0
npm info lifecycle graceful-readlink@1.0.1~preinstall: graceful-readlink@1.0.1
npm info lifecycle commander@2.8.1~preinstall: commander@2.8.1
npm info lifecycle generate-function@2.0.0~preinstall: generate-function@2.0.0
npm info lifecycle is-property@1.0.2~preinstall: is-property@1.0.2
npm info lifecycle generate-object-property@1.2.0~preinstall: generate-object-property@1.2.0
npm info lifecycle jsonpointer@1.1.0~preinstall: jsonpointer@1.1.0
npm info lifecycle xtend@4.0.0~preinstall: xtend@4.0.0
npm info lifecycle is-my-json-valid@2.12.1~preinstall: is-my-json-valid@2.12.1
npm info lifecycle har-validator@1.8.0~preinstall: har-validator@1.8.0
npm info lifecycle hoek@2.14.0~preinstall: hoek@2.14.0
npm info lifecycle boom@2.8.0~preinstall: boom@2.8.0
npm info lifecycle cryptiles@2.0.4~preinstall: cryptiles@2.0.4
npm info lifecycle sntp@1.0.9~preinstall: sntp@1.0.9
npm info lifecycle hawk@3.1.0~preinstall: hawk@3.1.0
npm info lifecycle asn1@0.1.11~preinstall: asn1@0.1.11
npm info lifecycle assert-plus@0.1.5~preinstall: assert-plus@0.1.5
npm info lifecycle ctype@0.5.3~preinstall: ctype@0.5.3
npm info lifecycle http-signature@0.11.0~preinstall: http-signature@0.11.0
npm info lifecycle isstream@0.1.2~preinstall: isstream@0.1.2
npm info lifecycle json-stringify-safe@5.0.1~preinstall: json-stringify-safe@5.0.1
npm info lifecycle mime-db@1.15.0~preinstall: mime-db@1.15.0
npm info lifecycle mime-types@2.1.3~preinstall: mime-types@2.1.3
npm info lifecycle form-data@1.0.0-rc2~preinstall: form-data@1.0.0-rc2
npm info lifecycle node-uuid@1.4.3~preinstall: node-uuid@1.4.3
npm info lifecycle oauth-sign@0.8.0~preinstall: oauth-sign@0.8.0
npm info lifecycle qs@4.0.0~preinstall: qs@4.0.0
npm info lifecycle stringstream@0.0.4~preinstall: stringstream@0.0.4
npm info lifecycle tough-cookie@2.0.0~preinstall: tough-cookie@2.0.0
npm info lifecycle tunnel-agent@0.4.1~preinstall: tunnel-agent@0.4.1
npm info lifecycle request@2.60.0~preinstall: request@2.60.0
npm info lifecycle wrappy@1.0.1~preinstall: wrappy@1.0.1
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle balanced-match@0.2.0~preinstall: balanced-match@0.2.0
npm info lifecycle concat-map@0.0.1~preinstall: concat-map@0.0.1
npm info lifecycle brace-expansion@1.1.0~preinstall: brace-expansion@1.1.0
npm info lifecycle minimatch@2.0.10~preinstall: minimatch@2.0.10
npm info lifecycle wrappy@1.0.1~preinstall: wrappy@1.0.1
npm info lifecycle once@1.3.2~preinstall: once@1.3.2
npm info lifecycle inflight@1.0.4~preinstall: inflight@1.0.4
npm info lifecycle path-is-absolute@1.0.0~preinstall: path-is-absolute@1.0.0
npm info lifecycle glob@5.0.14~preinstall: glob@5.0.14
npm info lifecycle rimraf@2.4.2~preinstall: rimraf@2.4.2
npm info lifecycle semver@5.0.1~preinstall: semver@5.0.1
npm info lifecycle debug@0.7.4~preinstall: debug@0.7.4
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle lru-cache@2.6.5~preinstall: lru-cache@2.6.5
npm info lifecycle sigmund@1.0.1~preinstall: sigmund@1.0.1
npm info lifecycle minimatch@0.2.14~preinstall: minimatch@0.2.14
npm info lifecycle graceful-fs@3.0.8~preinstall: graceful-fs@3.0.8
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle graceful-fs@1.2.3~preinstall: graceful-fs@1.2.3
npm info lifecycle once@1.1.1~preinstall: once@1.1.1
npm info lifecycle core-util-is@1.0.1~preinstall: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle isarray@0.0.1~preinstall: isarray@0.0.1
npm info lifecycle string_decoder@0.10.31~preinstall: string_decoder@0.10.31
npm info lifecycle readable-stream@1.0.33~preinstall: readable-stream@1.0.33
npm info lifecycle rimraf@2.2.8~preinstall: rimraf@2.2.8
npm info lifecycle fstream@0.1.31~preinstall: fstream@0.1.31
npm info lifecycle fstream-ignore@0.0.7~preinstall: fstream-ignore@0.0.7
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle block-stream@0.0.8~preinstall: block-stream@0.0.8
npm info lifecycle tar@0.1.20~preinstall: tar@0.1.20
npm info lifecycle uid-number@0.0.3~preinstall: uid-number@0.0.3
npm info lifecycle tar-pack@2.0.0~preinstall: tar-pack@2.0.0
npm info lifecycle graceful-fs@3.0.8~preinstall: graceful-fs@3.0.8
npm info lifecycle inherits@2.0.1~preinstall: inherits@2.0.1
npm info lifecycle block-stream@0.0.8~preinstall: block-stream@0.0.8
npm info lifecycle fstream@1.0.7~preinstall: fstream@1.0.7
npm info lifecycle tar@2.1.1~preinstall: tar@2.1.1
npm info lifecycle nan@1.8.4~preinstall: nan@1.8.4
npm info lifecycle node-pre-gyp@0.6.9~preinstall: node-pre-gyp@0.6.9
npm info lifecycle sqlite3@3.0.10~preinstall: sqlite3@3.0.10
npm info linkStuff minimist@0.0.8
npm info linkStuff mkdirp@0.5.1
npm info linkStuff abbrev@1.0.7
npm info linkStuff nopt@3.0.3
npm info linkStuff ansi@0.3.0
npm info linkStuff delegates@0.1.0
npm info linkStuff core-util-is@1.0.1
npm info linkStuff inherits@2.0.1
npm info linkStuff isarray@0.0.1
npm info linkStuff string_decoder@0.10.31
npm info linkStuff readable-stream@1.1.13
npm info linkStuff are-we-there-yet@1.0.4
npm info linkStuff has-unicode@1.0.0
npm info linkStuff lodash._basetostring@3.0.1
npm info linkStuff lodash.repeat@3.0.1
npm info linkStuff lodash._createpadding@3.6.1
npm info linkStuff lodash.pad@3.1.1
npm info linkStuff lodash._basetostring@3.0.1
npm info linkStuff lodash.repeat@3.0.1
npm info linkStuff lodash._createpadding@3.6.1
npm info linkStuff lodash.padleft@3.1.1
npm info linkStuff lodash._basetostring@3.0.1
npm info linkStuff lodash.repeat@3.0.1
npm info linkStuff lodash._createpadding@3.6.1
npm info linkStuff lodash.padright@3.1.1
npm info linkStuff gauge@1.2.2
npm info linkStuff npmlog@1.2.1
npm info linkStuff deep-extend@0.2.11
npm info linkStuff ini@1.3.4
npm info linkStuff minimist@1.1.2
npm info linkStuff strip-json-comments@0.1.3
npm info linkStuff rc@1.1.0
npm info linkStuff aws-sign2@0.5.0
npm info linkStuff core-util-is@1.0.1
npm info linkStuff inherits@2.0.1
npm info linkStuff isarray@0.0.1
npm info linkStuff process-nextick-args@1.0.2
npm info linkStuff string_decoder@0.10.31
npm info linkStuff util-deprecate@1.0.1
npm info linkStuff readable-stream@2.0.2
npm info linkStuff bl@1.0.0
npm info linkStuff caseless@0.11.0
npm info linkStuff delayed-stream@1.0.0
npm info linkStuff combined-stream@1.0.5
npm info linkStuff extend@3.0.0
npm info linkStuff forever-agent@0.6.1
npm info linkStuff async@1.4.0
npm info linkStuff bluebird@2.9.34
npm info linkStuff ansi-styles@2.1.0
npm info linkStuff escape-string-regexp@1.0.3
npm info linkStuff ansi-regex@2.0.0
npm info linkStuff has-ansi@2.0.0
npm info linkStuff ansi-regex@2.0.0
npm info linkStuff strip-ansi@3.0.0
npm info linkStuff supports-color@2.0.0
npm info linkStuff chalk@1.1.0
npm info linkStuff graceful-readlink@1.0.1
npm info linkStuff commander@2.8.1
npm info linkStuff generate-function@2.0.0
npm info linkStuff is-property@1.0.2
npm info linkStuff generate-object-property@1.2.0
npm info linkStuff jsonpointer@1.1.0
npm info linkStuff xtend@4.0.0
npm info linkStuff is-my-json-valid@2.12.1
npm info linkStuff har-validator@1.8.0
npm info linkStuff hoek@2.14.0
npm info linkStuff boom@2.8.0
npm info linkStuff cryptiles@2.0.4
npm info linkStuff sntp@1.0.9
npm info linkStuff hawk@3.1.0
npm info linkStuff asn1@0.1.11
npm info linkStuff assert-plus@0.1.5
npm info linkStuff ctype@0.5.3
npm info linkStuff http-signature@0.11.0
npm info linkStuff isstream@0.1.2
npm info linkStuff json-stringify-safe@5.0.1
npm info linkStuff mime-db@1.15.0
npm info linkStuff mime-types@2.1.3
npm info linkStuff form-data@1.0.0-rc2
npm info linkStuff node-uuid@1.4.3
npm info linkStuff oauth-sign@0.8.0
npm info linkStuff qs@4.0.0
npm info linkStuff stringstream@0.0.4
npm info linkStuff tough-cookie@2.0.0
npm info linkStuff tunnel-agent@0.4.1
npm info linkStuff request@2.60.0
npm info linkStuff wrappy@1.0.1
npm info linkStuff inherits@2.0.1
npm info linkStuff balanced-match@0.2.0
npm info linkStuff concat-map@0.0.1
npm info linkStuff brace-expansion@1.1.0
npm info linkStuff minimatch@2.0.10
npm info linkStuff wrappy@1.0.1
npm info linkStuff once@1.3.2
npm info linkStuff inflight@1.0.4
npm info linkStuff path-is-absolute@1.0.0
npm info linkStuff glob@5.0.14
npm info linkStuff rimraf@2.4.2
npm info linkStuff semver@5.0.1
npm info linkStuff debug@0.7.4
npm info linkStuff inherits@2.0.1
npm info linkStuff lru-cache@2.6.5
npm info linkStuff sigmund@1.0.1
npm info linkStuff minimatch@0.2.14
npm info linkStuff graceful-fs@3.0.8
npm info linkStuff inherits@2.0.1
npm info linkStuff graceful-fs@1.2.3
npm info linkStuff once@1.1.1
npm info linkStuff core-util-is@1.0.1
npm info linkStuff inherits@2.0.1
npm info linkStuff isarray@0.0.1
npm info linkStuff string_decoder@0.10.31
npm info linkStuff readable-stream@1.0.33
npm info linkStuff rimraf@2.2.8
npm info linkStuff fstream@0.1.31
npm info linkStuff fstream-ignore@0.0.7
npm info linkStuff inherits@2.0.1
npm info linkStuff block-stream@0.0.8
npm info linkStuff tar@0.1.20
npm info linkStuff uid-number@0.0.3
npm info linkStuff tar-pack@2.0.0
npm info linkStuff graceful-fs@3.0.8
npm info linkStuff inherits@2.0.1
npm info linkStuff block-stream@0.0.8
npm info linkStuff fstream@1.0.7
npm info linkStuff tar@2.1.1
npm info linkStuff nan@1.8.4
npm info linkStuff node-pre-gyp@0.6.9
npm info linkStuff sqlite3@3.0.10
npm info lifecycle minimist@0.0.8~install: minimist@0.0.8
npm info lifecycle mkdirp@0.5.1~install: mkdirp@0.5.1
npm info lifecycle abbrev@1.0.7~install: abbrev@1.0.7
npm info lifecycle nopt@3.0.3~install: nopt@3.0.3
npm info lifecycle ansi@0.3.0~install: ansi@0.3.0
npm info lifecycle delegates@0.1.0~install: delegates@0.1.0
npm info lifecycle core-util-is@1.0.1~install: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle isarray@0.0.1~install: isarray@0.0.1
npm info lifecycle string_decoder@0.10.31~install: string_decoder@0.10.31
npm info lifecycle readable-stream@1.1.13~install: readable-stream@1.1.13
npm info lifecycle are-we-there-yet@1.0.4~install: are-we-there-yet@1.0.4
npm info lifecycle has-unicode@1.0.0~install: has-unicode@1.0.0
npm info lifecycle lodash._basetostring@3.0.1~install: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~install: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~install: lodash._createpadding@3.6.1
npm info lifecycle lodash.pad@3.1.1~install: lodash.pad@3.1.1
npm info lifecycle lodash._basetostring@3.0.1~install: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~install: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~install: lodash._createpadding@3.6.1
npm info lifecycle lodash.padleft@3.1.1~install: lodash.padleft@3.1.1
npm info lifecycle lodash._basetostring@3.0.1~install: lodash._basetostring@3.0.1
npm info lifecycle lodash.repeat@3.0.1~install: lodash.repeat@3.0.1
npm info lifecycle lodash._createpadding@3.6.1~install: lodash._createpadding@3.6.1
npm info lifecycle lodash.padright@3.1.1~install: lodash.padright@3.1.1
npm info lifecycle gauge@1.2.2~install: gauge@1.2.2
npm info lifecycle npmlog@1.2.1~install: npmlog@1.2.1
npm info lifecycle deep-extend@0.2.11~install: deep-extend@0.2.11
npm info lifecycle ini@1.3.4~install: ini@1.3.4
npm info lifecycle minimist@1.1.2~install: minimist@1.1.2
npm info lifecycle strip-json-comments@0.1.3~install: strip-json-comments@0.1.3
npm info lifecycle rc@1.1.0~install: rc@1.1.0
npm info lifecycle aws-sign2@0.5.0~install: aws-sign2@0.5.0
npm info lifecycle core-util-is@1.0.1~install: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle isarray@0.0.1~install: isarray@0.0.1
npm info lifecycle process-nextick-args@1.0.2~install: process-nextick-args@1.0.2
npm info lifecycle string_decoder@0.10.31~install: string_decoder@0.10.31
npm info lifecycle util-deprecate@1.0.1~install: util-deprecate@1.0.1
npm info lifecycle readable-stream@2.0.2~install: readable-stream@2.0.2
npm info lifecycle bl@1.0.0~install: bl@1.0.0
npm info lifecycle caseless@0.11.0~install: caseless@0.11.0
npm info lifecycle delayed-stream@1.0.0~install: delayed-stream@1.0.0
npm info lifecycle combined-stream@1.0.5~install: combined-stream@1.0.5
npm info lifecycle extend@3.0.0~install: extend@3.0.0
npm info lifecycle forever-agent@0.6.1~install: forever-agent@0.6.1
npm info lifecycle async@1.4.0~install: async@1.4.0
npm info lifecycle bluebird@2.9.34~install: bluebird@2.9.34
npm info lifecycle ansi-styles@2.1.0~install: ansi-styles@2.1.0
npm info lifecycle escape-string-regexp@1.0.3~install: escape-string-regexp@1.0.3
npm info lifecycle ansi-regex@2.0.0~install: ansi-regex@2.0.0
npm info lifecycle has-ansi@2.0.0~install: has-ansi@2.0.0
npm info lifecycle ansi-regex@2.0.0~install: ansi-regex@2.0.0
npm info lifecycle strip-ansi@3.0.0~install: strip-ansi@3.0.0
npm info lifecycle supports-color@2.0.0~install: supports-color@2.0.0
npm info lifecycle chalk@1.1.0~install: chalk@1.1.0
npm info lifecycle graceful-readlink@1.0.1~install: graceful-readlink@1.0.1
npm info lifecycle commander@2.8.1~install: commander@2.8.1
npm info lifecycle generate-function@2.0.0~install: generate-function@2.0.0
npm info lifecycle is-property@1.0.2~install: is-property@1.0.2
npm info lifecycle generate-object-property@1.2.0~install: generate-object-property@1.2.0
npm info lifecycle jsonpointer@1.1.0~install: jsonpointer@1.1.0
npm info lifecycle xtend@4.0.0~install: xtend@4.0.0
npm info lifecycle is-my-json-valid@2.12.1~install: is-my-json-valid@2.12.1
npm info lifecycle har-validator@1.8.0~install: har-validator@1.8.0
npm info lifecycle hoek@2.14.0~install: hoek@2.14.0
npm info lifecycle boom@2.8.0~install: boom@2.8.0
npm info lifecycle cryptiles@2.0.4~install: cryptiles@2.0.4
npm info lifecycle sntp@1.0.9~install: sntp@1.0.9
npm info lifecycle hawk@3.1.0~install: hawk@3.1.0
npm info lifecycle asn1@0.1.11~install: asn1@0.1.11
npm info lifecycle assert-plus@0.1.5~install: assert-plus@0.1.5
npm info lifecycle ctype@0.5.3~install: ctype@0.5.3
npm info lifecycle http-signature@0.11.0~install: http-signature@0.11.0
npm info lifecycle isstream@0.1.2~install: isstream@0.1.2
npm info lifecycle json-stringify-safe@5.0.1~install: json-stringify-safe@5.0.1
npm info lifecycle mime-db@1.15.0~install: mime-db@1.15.0
npm info lifecycle mime-types@2.1.3~install: mime-types@2.1.3
npm info lifecycle form-data@1.0.0-rc2~install: form-data@1.0.0-rc2
npm info lifecycle node-uuid@1.4.3~install: node-uuid@1.4.3
npm info lifecycle oauth-sign@0.8.0~install: oauth-sign@0.8.0
npm info lifecycle qs@4.0.0~install: qs@4.0.0
npm info lifecycle stringstream@0.0.4~install: stringstream@0.0.4
npm info lifecycle tough-cookie@2.0.0~install: tough-cookie@2.0.0
npm info lifecycle tunnel-agent@0.4.1~install: tunnel-agent@0.4.1
npm info lifecycle request@2.60.0~install: request@2.60.0
npm info lifecycle wrappy@1.0.1~install: wrappy@1.0.1
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle balanced-match@0.2.0~install: balanced-match@0.2.0
npm info lifecycle concat-map@0.0.1~install: concat-map@0.0.1
npm info lifecycle brace-expansion@1.1.0~install: brace-expansion@1.1.0
npm info lifecycle minimatch@2.0.10~install: minimatch@2.0.10
npm info lifecycle wrappy@1.0.1~install: wrappy@1.0.1
npm info lifecycle once@1.3.2~install: once@1.3.2
npm info lifecycle inflight@1.0.4~install: inflight@1.0.4
npm info lifecycle path-is-absolute@1.0.0~install: path-is-absolute@1.0.0
npm info lifecycle glob@5.0.14~install: glob@5.0.14
npm info lifecycle rimraf@2.4.2~install: rimraf@2.4.2
npm info lifecycle semver@5.0.1~install: semver@5.0.1
npm info lifecycle debug@0.7.4~install: debug@0.7.4
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle lru-cache@2.6.5~install: lru-cache@2.6.5
npm info lifecycle sigmund@1.0.1~install: sigmund@1.0.1
npm info lifecycle minimatch@0.2.14~install: minimatch@0.2.14
npm info lifecycle graceful-fs@3.0.8~install: graceful-fs@3.0.8
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle graceful-fs@1.2.3~install: graceful-fs@1.2.3
npm info lifecycle once@1.1.1~install: once@1.1.1
npm info lifecycle core-util-is@1.0.1~install: core-util-is@1.0.1
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle isarray@0.0.1~install: isarray@0.0.1
npm info lifecycle string_decoder@0.10.31~install: string_decoder@0.10.31
npm info lifecycle readable-stream@1.0.33~install: readable-stream@1.0.33
npm info lifecycle rimraf@2.2.8~install: rimraf@2.2.8
npm info lifecycle fstream@0.1.31~install: fstream@0.1.31
npm info lifecycle fstream-ignore@0.0.7~install: fstream-ignore@0.0.7
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle block-stream@0.0.8~install: block-stream@0.0.8
npm info lifecycle tar@0.1.20~install: tar@0.1.20
npm info lifecycle uid-number@0.0.3~install: uid-number@0.0.3
npm info lifecycle tar-pack@2.0.0~install: tar-pack@2.0.0
npm info lifecycle graceful-fs@3.0.8~install: graceful-fs@3.0.8
npm info lifecycle inherits@2.0.1~install: inherits@2.0.1
npm info lifecycle block-stream@0.0.8~install: block-stream@0.0.8
npm info lifecycle fstream@1.0.7~install: fstream@1.0.7
npm info lifecycle tar@2.1.1~install: tar@2.1.1
npm info lifecycle nan@1.8.4~install: nan@1.8.4
npm info lifecycle node-pre-gyp@0.6.9~install: node-pre-gyp@0.6.9
npm info lifecycle sqlite3@3.0.10~install: sqlite3@3.0.10

> sqlite3@3.0.10 install /home/jonas/Code/friends-forever-website/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.9
node-pre-gyp info using node@7.7.3 | linux | x64
node-pre-gyp info check checked for "/home/jonas/Code/friends-forever-website/node_modules/sqlite3/lib/binding/node-v51-linux-x64/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.10/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION 
node-pre-gyp ERR! stack Error: Cannot find module 'internal/fs'
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:470:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:418:25)
node-pre-gyp ERR! stack     at Module.require (module.js:498:17)
node-pre-gyp ERR! stack     at require (internal/module.js:20:19)
node-pre-gyp ERR! stack     at evalmachine.<anonymous>:18:20
node-pre-gyp ERR! stack     at Object.<anonymous> (/home/jonas/Code/friends-forever-website/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:571:32)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)
node-pre-gyp ERR! stack     at Module.load (module.js:488:32)
node-pre-gyp ERR! stack     at tryModuleLoad (module.js:447:12)
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:470:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:418:25)
node-pre-gyp ERR! stack     at Module.require (module.js:498:17)
node-pre-gyp ERR! stack     at require (internal/module.js:20:19)
node-pre-gyp ERR! stack     at evalmachine.<anonymous>:18:20
node-pre-gyp ERR! stack     at Object.<anonymous> (/home/jonas/Code/friends-forever-website/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:571:32)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)
node-pre-gyp ERR! stack     at Module.load (module.js:488:32)
node-pre-gyp ERR! stack     at tryModuleLoad (module.js:447:12)
node-pre-gyp ERR! System Linux 4.9.11-1-ARCH
node-pre-gyp ERR! command "/usr/bin/node" "/home/jonas/Code/friends-forever-website/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/jonas/Code/friends-forever-website/node_modules/sqlite3
node-pre-gyp ERR! node -v v7.7.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.9
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm info lifecycle sqlite3@3.0.10~install: Failed to exec install script
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! sqlite3@3.0.10 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
npm ERR! 
npm ERR! Failed at the sqlite3@3.0.10 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jonas/.npm/_logs/2017-04-18T15_36_17_370Z-debug.log

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
djhicommented, May 30, 2017

Downgrading to node 6.9.1 fixed it for me

0reactions
code-for-coffeecommented, Nov 8, 2017

Fails to install on Node 6 and 7.

6.11.3 log:

jtraver at lenpc0ctq0b in ~/Documents/beta-projects/jumpseat/jumpseat-webapp on master
$ nvm use 6
Now using node v6.11.3 (npm v5.4.2)
jtraver at lenpc0ctq0b in ~/Documents/beta-projects/jumpseat/jumpseat-webapp on master
$ npm install --build-from-source --sqlite=/usr/local
npm WARN deprecated set-immediate@0.1.1: Use `setimmediate` instead
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> sqlite3@2.2.7 install /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node',
node-pre-gyp verb cli   '/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.5.22
node-pre-gyp info using node@6.11.3 | darwin | x64
node-pre-gyp verb command install []
(node:64191) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
node-pre-gyp info build requesting source compile
node-pre-gyp verb command build [ 'rebuild' ]
(node:64191) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:335:68: error: too many arguments to function call, expected at most 2, have 4
    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
           ~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:4834:3: note: 'New' declared here
  static Local<Signature> New(
  ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:390:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
    return v8::ScriptCompiler::CompileUnbound(
                               ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:1333:10: note: 'CompileUnbound' has been explicitly marked deprecated here
  static V8_DEPRECATED("Use maybe version",
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:399:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
    return v8::ScriptCompiler::CompileUnbound(
                               ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:1333:10: note: 'CompileUnbound' has been explicitly marked deprecated here
  static V8_DEPRECATED("Use maybe version",
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:405:31: warning: 'New' is deprecated [-Wdeprecated-declarations]
    return v8::BooleanObject::New(value).As<v8::BooleanObject>();
                              ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:4009:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
  ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:417:3: error: redefinition of 'NanNew'
  NanNew<v8::StringObject, v8::Handle<v8::String> >(
  ^
../../nan/nan.h:410:3: note: previous definition is here
  NanNew<v8::StringObject, v8::Local<v8::String> >(
  ^
../../nan/nan.h:435:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                   ^
../../nan/nan.h:429:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                   ^
../../nan/nan.h:447:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                   ^
../../nan/nan.h:441:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::RegExp> NanNew(
                                   ^
../../nan/nan.h:455:42: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        v8::Isolate::GetCurrent(), val)->ToUint32();
                                         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2019:10: note: 'ToUint32' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:461:42: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
        v8::Isolate::GetCurrent(), val)->ToUint32();
                                         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2019:10: note: 'ToUint32' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:466:60: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
    return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                           ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2020:10: note: 'ToInt32' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:471:60: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
    return v8::Int32::New(v8::Isolate::GetCurrent(), val)->ToInt32();
                                                           ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2020:10: note: 'ToInt32' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:511:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewFromOneByte(
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2332:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:522:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewFromOneByte(
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2332:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:531:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2332:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:537:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), arg);
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2332:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:612:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewExternal(v8::Isolate::GetCurrent(), resource);
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2371:10: note: 'NewExternal' has been explicitly marked deprecated here
  static V8_DEPRECATED("Use maybe version",
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:616:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2241:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:615:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:610:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:617:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
    return v8::String::NewExternal(v8::Isolate::GetCurrent(), resource);
                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:2371:10: note: 'NewExternal' has been explicitly marked deprecated here
  static V8_DEPRECATED("Use maybe version",
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:630:27: error: redefinition of '_NanEscapeScopeHelper'
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../../nan/nan.h:625:27: note: previous definition is here
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {
                          ^
../../nan/nan.h:646:12: error: no matching function for call to '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))
                                          ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:630:27: note: candidate template ignored: substitution failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../../nan/nan.h:651:12: error: no matching function for call to '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Null(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))
                                          ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:630:27: note: candidate template ignored: substitution failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../../nan/nan.h:656:12: error: no matching function for call to '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))
                                          ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:630:27: note: candidate template ignored: substitution failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../../nan/nan.h:661:12: error: no matching function for call to '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::False(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:634:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))
                                          ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:630:27: note: candidate template ignored: substitution failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../../nan/nan.h:693:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
      v8::Isolate::GCEpilogueCallback callback
      ~~~~~~~~~~~~~^
../../nan/nan.h:699:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
      v8::Isolate::GCEpilogueCallback callback) {
      ~~~~~~~~~~~~~^
../../nan/nan.h:704:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
      v8::Isolate::GCPrologueCallback callback
      ~~~~~~~~~~~~~^
../../nan/nan.h:710:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
      v8::Isolate::GCPrologueCallback callback) {
      ~~~~~~~~~~~~~^
../../nan/nan.h:878:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../../nan/nan.h:889:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/jtraver/.node-gyp/6.11.3/include/node/node_buffer.h:46:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/node_buffer.h:34:40: note: candidate function not viable: no known conversion from 'const char *' to 'v8::Local<v8::String>' for 2nd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/node_buffer.h:31:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/jtraver/.node-gyp/6.11.3/include/node/node_buffer.h:39:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:893:12: error: no viable conversion from returned value of type 'v8::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:218:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
      'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:218:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to
      'v8::Local<v8::Object> &&' for 1st argument
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:222:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:900:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../../nan/nan.h:927:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
    return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                               ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:1352:10: note: 'Compile' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
In file included from ../src/database.cc:5:
In file included from ../src/database.h:11:
../../nan/nan.h:934:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
    return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
                               ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8.h:1352:10: note: 'Compile' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/jtraver/.node-gyp/6.11.3/include/node/v8config.h:336:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated))
                            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
make: *** [Release/obj.target/node_sqlite3/src/database.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/jtraver/Documents/beta-projects/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node" "/Users/jtraver/Documents/beta-projects/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=2.2.7" "--major=2" "--minor=2" "--patch=7" "--runtime=node" "--node_abi=node-v48" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/lib/binding/node-v48-darwin-x64" "--remote_path=./sqlite3/v2.2.7/" "--package_name=node-v48-darwin-x64.tar.gz" "--staged_tarball=build/stage/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz" "--hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz"
gyp ERR! cwd /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3
gyp ERR! node -v v6.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node --node_abi=node-v48 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/lib/binding/node-v48-darwin-x64 --remote_path=./sqlite3/v2.2.7/ --package_name=node-v48-darwin-x64.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node" "/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3
node-pre-gyp ERR! node -v v6.11.3
node-pre-gyp ERR! node-pre-gyp -v v0.5.22
node-pre-gyp ERR! not ok 
Failed to execute '/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node rebuild --name=sqlite3 --configuration=Release --module_name=node_sqlite3 --version=2.2.7 --major=2 --minor=2 --patch=7 --runtime=node --node_abi=node-v48 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module_path=/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/lib/binding/node-v48-darwin-x64 --remote_path=./sqlite3/v2.2.7/ --package_name=node-v48-darwin-x64.tar.gz --staged_tarball=build/stage/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v2.2.7/node-v48-darwin-x64.tar.gz' (1)
npm WARN sqlite3@2.2.7 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@2.2.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sqlite3@2.2.7 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/jtraver/.npm/_logs/2017-11-08T20_44_11_829Z-debug.log

Log points to:

1496 silly install node-pre-gyp@0.5.22
1497 info lifecycle node-pre-gyp@0.5.22~install: node-pre-gyp@0.5.22
1498 silly install sqlite3@2.2.7
1499 info lifecycle sqlite3@2.2.7~install: sqlite3@2.2.7
1500 verbose lifecycle sqlite3@2.2.7~install: unsafe-perm in lifecycle true
1501 verbose lifecycle sqlite3@2.2.7~install: PATH: /Users/jtraver/.nvm/versions/node/v6.11.3/lib/node_modules/npm/bin/node-gyp-bin:/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3/node_modules/.bin:/Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/.bin:/Users/jtraver/.nvm/versions/node/v6.11.3/bin:/usr/local/opt/sqlite/bin:/Users/jtraver/.rvm/gems/ruby-2.3.4/bin:/Users/jtraver/.rvm/gems/ruby-2.3.4@global/bin:/Users/jtraver/.rvm/rubies/ruby-2.3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jtraver/.rvm/bin:/Users/jtraver/.rvm/bin
1502 verbose lifecycle sqlite3@2.2.7~install: CWD: /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/sqlite3
1503 silly lifecycle sqlite3@2.2.7~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
1504 silly lifecycle sqlite3@2.2.7~install: Returned: code: 1  signal: null
1505 info lifecycle sqlite3@2.2.7~install: Failed to exec install script
1506 verbose unlock done using /Users/jtraver/.npm/_locks/staging-0d30b076336c4b8a.lock for /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp/node_modules/.staging
1507 warn sqlite3@2.2.7 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
1508 verbose stack Error: sqlite3@2.2.7 install: `node-pre-gyp install --fallback-to-build`
1508 verbose stack Exit status 1
1508 verbose stack     at EventEmitter.<anonymous> (/Users/jtraver/.nvm/versions/node/v6.11.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
1508 verbose stack     at emitTwo (events.js:106:13)
1508 verbose stack     at EventEmitter.emit (events.js:191:7)
1508 verbose stack     at ChildProcess.<anonymous> (/Users/jtraver/.nvm/versions/node/v6.11.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
1508 verbose stack     at emitTwo (events.js:106:13)
1508 verbose stack     at ChildProcess.emit (events.js:191:7)
1508 verbose stack     at maybeClose (internal/child_process.js:920:16)
1508 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
1509 verbose pkgid sqlite3@2.2.7
1510 verbose cwd /Users/jtraver/Documents/beta-projects/jumpseat/jumpseat-webapp
1511 verbose Darwin 16.7.0
1512 verbose argv "/Users/jtraver/.nvm/versions/node/v6.11.3/bin/node" "/Users/jtraver/.nvm/versions/node/v6.11.3/bin/npm" "install" "--build-from-source" "--sqlite=/usr/local"
1513 verbose node v6.11.3
1514 verbose npm  v5.4.2
1515 error code ELIFECYCLE
1516 error errno 1
1517 error sqlite3@2.2.7 install: `node-pre-gyp install --fallback-to-build`
1517 error Exit status 1
1518 error Failed at the sqlite3@2.2.7 install script.
1518 error This is probably not a problem with npm. There is likely additional logging output above.
1519 verbose exit [ 1, true ]

The error appears to stem from:

(node:64191) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'internal/fs' after upgrading to node 7
First, open the console as administrator (or in the terminal with sudo if it is a Linux) and: npm cache clean. For npm...
Read more >
Error: Cannot find module 'internal/fs' when npm install on mac ...
Using Mac OS Sierra and installed Node + npm via Homebrew. This is still not functional for me. I've gone through the thread...
Read more >
npm error: cannot find module 'internal/fs' - remarkablemark
I encountered a strange npm error when I switched Node.js versions. I started to get the following error whenever I tried to install...
Read more >
Error: Cannot find module 'internal/fs' - Ionic Forum
I'm trying to add ngCordova to the new app and get Error: Cannot find module 'internal/fs' . Any thoughts on how to fix?...
Read more >
How to fix the Laravel Gulp Error: Cannot find module 'internal/fs'
Get this error? vagrant@homestead:*****$ gulp module.js:472 throw err; ^ Error: Cannot find module 'internal/fs' at Function.Module.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found