mozilla / fxa-auth-server

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
399 stars 108 forks source link

npm install stoped by fsevents #2480

Closed kettbi closed 6 years ago

kettbi commented 6 years ago

Hello,

nodejs -v : v8.11.3 npm -v : 2.15.12 OS : debian 9 x64

When in try to install with "npm install" command, the script is stoped with this error :

:~/fxa-auth-server$ npm install

> dtrace-provider@0.8.6 install /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make : on entre dans le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider/build »
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make : on quitte le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider/build »
npm ERR! Linux 4.9.103-xxxx-std-ipv6-64
npm ERR! argv "/usr/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v8.11.3
npm ERR! npm  v2.15.12
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/laran/fxa-auth-server/npm-debug.log

Here is the end of the npm-debug.log :

47731 info install fxa-auth-db-mysql@1.114.1
47732 info postinstall fxa-auth-db-mysql@1.114.1
47733 verbose unlock done using /home/laran/.npm/_locks/fxa-auth-db-mysql-7ca10868929e42cf.lock for /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql
47734 verbose stack Error: Unsupported
47734 verbose stack     at checkPlatform (/usr/local/lib/node_modules/npm/node_modules/npm-install-checks/index.js:47:14)
47734 verbose stack     at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
47734 verbose stack     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
47734 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
47734 verbose stack     at checkEngine (/usr/local/lib/node_modules/npm/node_modules/npm-install-checks/index.js:26:10)
47734 verbose stack     at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
47734 verbose stack     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
47734 verbose stack     at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
47734 verbose stack     at /usr/local/lib/node_modules/npm/lib/install.js:1038:5
47734 verbose stack     at /usr/local/lib/node_modules/npm/lib/utils/locker.js:39:7
47735 verbose pkgid fsevents@1.2.4
47736 verbose cwd /home/laran/fxa-auth-server
47737 error Linux 4.9.103-xxxx-std-ipv6-64
47738 error argv "/usr/bin/node" "/usr/local/bin/npm" "install"
47739 error node v8.11.3
47740 error npm  v2.15.12
47741 error code EBADPLATFORM
47742 error notsup Unsupported
47742 error notsup Not compatible with your operating system or architecture: fsevents@1.2.4
47742 error notsup Valid OS:    darwin
47742 error notsup Valid Arch:  any
47742 error notsup Actual OS:   linux
47742 error notsup Actual Arch: x64
47743 verbose exit [ 1, true ]

Any ideas? Thx!

shane-tomlinson commented 6 years ago

@kettbi - can you upgrade to npm@6 and see if the problem still occurs?

kettbi commented 6 years ago

Thanks for your answer

I read here and here that we must use npm V2.

sudo npm install n -g

/usr/bin/n -> /usr/lib/node_modules/n/bin/n
n@2.1.12 /usr/lib/node_modules/n

sudo n stable

npm -v 6.1.0

npm install

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/should/node_modules/gulp-rename/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

> pre-commit@0.0.11 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/vinyl/node_modules/istanbul-coveralls/node_modules/output-file/node_modules/one-time/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/vinyl/node_modules/istanbul-coveralls/node_modules/output-file/node_modules/one-time/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@0.0.11~uninstall: continuing anyway pre-commit@0.0.11 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/isobject/node_modules/gulp-format-md/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/object.pick/node_modules/gulp-format-md/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> @zeit/git-hooks@0.1.4 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mocha/node_modules/expect.js/node_modules/serve/node_modules/@zeit/git-hooks
> node ./uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mocha/node_modules/expect.js/node_modules/serve/node_modules/@zeit/git-hooks/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle @zeit/git-hooks@0.1.4~uninstall: continuing anyway @zeit/git-hooks@0.1.4 uninstall: `node ./uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@0.0.11 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/vinyl/node_modules/istanbul-coveralls/node_modules/output-file/node_modules/one-time/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/vinyl/node_modules/istanbul-coveralls/node_modules/output-file/node_modules/one-time/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@0.0.11~uninstall: continuing anyway pre-commit@0.0.11 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

(node:25337) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/mixin-deep/node_modules/gulp-format-md/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/list-item/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gulp-format-md/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gulp-format-md/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gulp-format-md/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gulp-format-md/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/gulp-istanbul/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/delimiter-regex/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/delimiter-regex/node_modules/extend-shallow/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/benchmarked/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit
> node uninstall.js

internal/modules/cjs/loader.js:596
    throw err;
    ^

Error: Cannot find module '/home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/benchmarked/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit/node_modules/pre-commit/uninstall.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
npm WARN lifecycle pre-commit@1.2.2~uninstall: continuing anyway pre-commit@1.2.2 uninstall: `node uninstall.js`
npm WARN lifecycle Exit status 1

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/benchmarked/node_modules/vinyl/node_modules/cloneable-readable/node_modules/pre-commit
> node uninstall.js

> pre-commit@1.2.2 uninstall /home/laran/fxa-auth-server/node_modules/hapi-hpkp/node_modules/joi/node_modules/markdown-toc/node_modules/gray-matter/node_modules/benchmarked/node_modules/file-reader/node_modules/camel-case/node_modules/pre-commit
> node uninstall.js

> husky@0.13.4 uninstall /home/laran/fxa-auth-server/node_modules/grunt-nunjucks-2-html/node_modules/expect.js/node_modules/serve/node_modules/serve-handler/node_modules/test-listen/node_modules/husky
> node ./bin/uninstall.js

/home/laran/fxa-auth-server/node_modules/grunt-nunjucks-2-html/node_modules/expect.js/node_modules/serve/node_modules/chalk/index.js:72
ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g');
                                                                          ^

TypeError: Cannot read property 'close' of undefined
    at Object.<anonymous> (/home/laran/fxa-auth-server/node_modules/grunt-nunjucks-2-html/node_modules/expect.js/node_modules/serve/node_modules/chalk/index.js:72:75)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/laran/fxa-auth-server/node_modules/grunt-nunjucks-2-html/node_modules/expect.js/node_modules/serve/node_modules/serve-handler/node_modules/test-listen/node_modules/husky/bin/uninstall.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
npm WARN lifecycle husky@0.13.4~uninstall: continuing anyway husky@0.13.4 uninstall: `node ./bin/uninstall.js`
npm WARN lifecycle Exit status 1

> @zeit/git-hooks@0.1.4 uninstall /home/laran/fxa-auth-server/node_modules/grunt-nunjucks-2-html/node_modules/expect.js/node_modules/serve/node_modules/@zeit/git-hooks
> node ./uninstall.js

△  @zeit/git-hooks: hook 'applypatch-msg' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/applypatch-msg
△  @zeit/git-hooks: hook 'pre-applypatch' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-applypatch
△  @zeit/git-hooks: hook 'post-applypatch' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-applypatch
△  @zeit/git-hooks: hook 'pre-commit' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-commit
△  @zeit/git-hooks: hook 'prepare-commit-msg' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/prepare-commit-msg
△  @zeit/git-hooks: hook 'commit-msg' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/commit-msg
△  @zeit/git-hooks: hook 'post-commit' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-commit
△  @zeit/git-hooks: hook 'pre-rebase' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-rebase
△  @zeit/git-hooks: hook 'post-checkout' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-checkout
△  @zeit/git-hooks: hook 'post-merge' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-merge
△  @zeit/git-hooks: hook 'pre-push' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-push
△  @zeit/git-hooks: hook 'pre-receive' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-receive
△  @zeit/git-hooks: hook 'update' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/update
△  @zeit/git-hooks: hook 'post-receive' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-receive
△  @zeit/git-hooks: hook 'post-update' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-update
△  @zeit/git-hooks: hook 'push-to-checkout' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/push-to-checkout
△  @zeit/git-hooks: hook 'pre-auto-gc' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/pre-auto-gc
△  @zeit/git-hooks: hook 'post-rewrite' appears to be a user hook; skipping: /home/laran/fxa-auth-server/.git/hooks/post-rewrite
△  @zeit/git-hooks: hooks uninstalled successfully

> @newrelic/native-metrics@2.4.0 install /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/@newrelic/native-metrics
> node ./lib/pre-build.js install native_metrics

> /usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean configure
> /usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build -j 2 native_metrics
make : on entre dans le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/@newrelic/native-metrics/build »
  CXX(target) Release/obj.target/native_metrics/src/native_metrics.o
  CXX(target) Release/obj.target/native_metrics/src/GCBinder.o
../src/GCBinder.cpp: In static member function ‘static void nr::GCBinder::_doCallback(uv_work_t*, int)’:
../src/GCBinder.cpp:51:5: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
     );
     ^
In file included from ../src/GCBinder.hpp:3:0,
                 from ../src/GCBinder.cpp:2:
../../../nan/nan.h:950:46: note: declared here
   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                              ^~~~~~~~~~~~
  CXX(target) Release/obj.target/native_metrics/src/LoopChecker.o
  CXX(target) Release/obj.target/native_metrics/src/RUsageMeter.o
  SOLINK_MODULE(target) Release/obj.target/native_metrics.node
  COPY Release/native_metrics.node
make : on quitte le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/@newrelic/native-metrics/build »
install successful: _newrelic_native_metrics-2_4_0-native_metrics-64-linux-x64

> dtrace-provider@0.8.6 install /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make : on entre dans le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider/build »
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make : on quitte le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/dtrace-provider/build »

> scrypt-hash@1.1.14 install /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/scrypt-hash
> node-gyp rebuild

make : on entre dans le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/scrypt-hash/build »
  CC(target) Release/obj.target/scrypt/crypto_scrypt-sse.o
  CXX(target) Release/obj.target/scrypt/node_scrypt.o
In file included from ../node_modules/nan/nan.h:190:0,
                 from ../node_scrypt.cc:3:
../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(GetCurrentContext(), key, value, attribs);
               ^~~~~~~~
In file included from ../node_scrypt.cc:3:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../node_scrypt.cc:2:0:
/home/laran/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/laran/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../node_scrypt.cc:3:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../node_scrypt.cc:2:0:
/home/laran/.node-gyp/10.4.1/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/laran/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../node_scrypt.cc:3:0:
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../node_scrypt.cc:2:0:
/home/laran/.node-gyp/10.4.1/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/laran/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../node_scrypt.cc:3:0:
../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../node_modules/nan/nan.h:1453:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../node_scrypt.cc:2:0:
/home/laran/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/laran/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
scrypt.target.mk:102 : la recette pour la cible « Release/obj.target/scrypt/node_scrypt.o » a échouée
make: *** [Release/obj.target/scrypt/node_scrypt.o] Erreur 1
make : on quitte le répertoire « /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/scrypt-hash/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:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.9.103-xxxx-std-ipv6-64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/node_modules/scrypt-hash
gyp ERR! node -v v10.4.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN ajv-keywords@1.5.1 requires a peer of ajv@>=4.10.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt-hash@1.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the scrypt-hash@1.1.14 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!     /home/laran/.npm/_logs/2018-06-19T12_47_03_301Z-debug.log

End of the log file :

tail -n 30 /home/laran/.npm/_logs/2018-06-19T12_47_03_301Z-debug.log

207970 silly saveTree   ├── options@0.0.6
207970 silly saveTree   └── ultron@1.0.2
207971 warn ajv-keywords@1.5.1 requires a peer of ajv@>=4.10.0 but none is installed. You must install peer dependencies yourself.
207972 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
207973 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
207974 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
207974 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
207974 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
207974 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
207975 verbose stack Error: scrypt-hash@1.1.14 install: `node-gyp rebuild`
207975 verbose stack Exit status 1
207975 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
207975 verbose stack     at EventEmitter.emit (events.js:182:13)
207975 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
207975 verbose stack     at ChildProcess.emit (events.js:182:13)
207975 verbose stack     at maybeClose (internal/child_process.js:961:16)
207975 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
207976 verbose pkgid scrypt-hash@1.1.14
207977 verbose cwd /home/laran/fxa-auth-server
207978 verbose Linux 4.9.103-xxxx-std-ipv6-64
207979 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
207980 verbose node v10.4.1
207981 verbose npm  v6.1.0
207982 error code ELIFECYCLE
207983 error errno 1
207984 error scrypt-hash@1.1.14 install: `node-gyp rebuild`
207984 error Exit status 1
207985 error Failed at the scrypt-hash@1.1.14 install script.
207985 error This is probably not a problem with npm. There is likely additional logging output above.
207986 verbose exit [ 1, true ]
kettbi commented 6 years ago

When I run npm start

> fxa-auth-server@1.114.1 start /home/laran/fxa-auth-server
> NODE_ENV=dev scripts/start-local.sh 2>&1

Generating keypair
Secret Key saved: /home/laran/fxa-auth-server/config/secret-key.json
Public Key saved: /home/laran/fxa-auth-server/config/public-key.json
Generating key for VAPID
Done: /home/laran/fxa-auth-server/config/vapid-keys.json
{"Timestamp":1529413067360000000,"Logger":"fxa-auth-db-server","Type":"uncaughtException","Severity":0,"Pid":26776,"EnvVersion":"2.0","Fields":{"error":"Error: The module '/home/laran/fxa-auth-server/node_modules/scrypt-hash/build/Release/scrypt.node'\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 57. This version of Node.js requires\nNODE_MODULE_VERSION 64. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`).","stack":"\nwas compiled against a different Node.js version using\nNODE_MODULE_VERSION 57. This version of Node.js requires\nNODE_MODULE_VERSION 64. Please try re-compiling or re-installing\nthe module (for instance, using `npm rebuild` or `npm install`).\n    at Object.Module._extensions..node (internal/modules/cjs/loader.js:731:18)\n    at Module.load (internal/modules/cjs/loader.js:612:32)\n    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)\n    at Function.Module._load (internal/modules/cjs/loader.js:543:3)\n    at Module.require (internal/modules/cjs/loader.js:650:17)\n    at require (internal/modules/cjs/helpers.js:20:18)\n    at bindings (/home/laran/fxa-auth-server/node_modules/bindings/bindings.js:76:44)\n    at Object.<anonymous> (/home/laran/fxa-auth-server/node_modules/scrypt-hash/index.js:1:97)\n    at Module._compile (internal/modules/cjs/loader.js:702:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)\n    at Module.load (internal/modules/cjs/loader.js:612:32)\n    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)\n    at Function.Module._load (internal/modules/cjs/loader.js:543:3)\n    at Module.require (internal/modules/cjs/loader.js:650:17)\n    at require (internal/modules/cjs/helpers.js:20:18)\n    at Object.<anonymous> (/home/laran/fxa-auth-server/node_modules/fxa-auth-db-mysql/lib/db/util.js:10:32)"}}
fxa-auth-server.INFO: geodb.start {"op":"geodb.start","enabled":true,"dbPath":"/home/laran/fxa-auth-server/node_modules/fxa-geodb/db/cities-db.mmdb"}
fxa-auth-server.INFO: geodb.accuracy {"op":"geodb.accuracy","accuracy":50}
fxa-auth-server.INFO: geodb.accuracy_confidence {"op":"geodb.accuracy_confidence","accuracy_confidence":"fxa.location.accuracy.uncertain"}
fxa-auth-server.INFO: geodb.check {"op":"geodb.check","result":{"location":{"city":"Mountain View","country":"United States","countryCode":"US","state":"California","stateCode":"CA"},"timeZone":"America/Los_Angeles"}}
fxa-auth-server.INFO: undefined {"env":"dev","geodb":{"dbPath":"/home/laran/fxa-auth-server/node_modules/fxa-geodb/db/cities-db.mmdb","enabled":true},"log":{"app":"fxa-auth-server","level":"info","fmt":"pretty"},"memcached":{"address":"127.0.0.1:11211","idle":30000,"lifetime":7200},"publicUrl":"http://127.0.0.1:9000","domain":"127.0.0.1:9000","secretKeyFile":"/home/laran/fxa-auth-server/config/secret-key.json","publicKeyFile":"/home/laran/fxa-auth-server/config/public-key.json","vapidKeysFile":"/home/laran/fxa-auth-server/config/vapid-keys.json","db":{"backend":"httpdb","connectionRetry":10000,"connectionTimeout":300000,"poolee":{"timeout":5000,"maxPending":1000}},"httpdb":{"url":"http://127.0.0.1:8000"},"listen":{"host":"127.0.0.1","port":9000},"customsUrl":"none","contentServer":{"url":"http://127.0.0.1:3030"},"smtp":{"api":{"host":"127.0.0.1","port":9001},"host":"127.0.0.1","port":9999,"secure":false,"sender":"Firefox Accounts <no-reply@lcip.org>","verificationUrl":"http://127.0.0.1:3030/verify_email","verifyLoginUrl":"http://127.0.0.1:3030/complete_signin","passwordResetUrl":"http://127.0.0.1:3030/complete_reset_password","initiatePasswordResetUrl":"http://127.0.0.1:3030/reset_password","syncUrl":"https://accounts.firefox.com/connect_another_device/","androidUrl":"https://app.adjust.com/2uo1qc?campaign=fxa-conf-email&adgroup=android&creative=button","iosUrl":"https://app.adjust.com/2uo1qc?campaign=fxa-conf-email&adgroup=ios&creative=button&fallback=https%3A%2F%2Fitunes.apple.com%2Fapp%2Fapple-store%2Fid989804926%3Fpt%3D373246%26ct%3Dadjust_tracker%26mt%3D8","supportUrl":"https://support.mozilla.org/kb/im-having-problems-with-my-firefox-account","redirectDomain":"127.0.0.1","privacyUrl":"https://www.mozilla.org/privacy","passwordManagerInfoUrl":"https://support.mozilla.org/kb/password-manager-remember-delete-change-and-import#w_viewing-and-deleting-passwords","bounces":{"enabled":true,"complaint":{"0":86400000,"1":31536000000},"hard":{"0":86400000,"1":31536000000},"soft":{"0":300000}},"accountSettingsUrl":"http://127.0.0.1:3030/settings","accountRecoveryCodesUrl":"http://127.0.0.1:3030/settings/two_step_authentication/recovery_codes","initiatePasswordChangeUrl":"http://127.0.0.1:3030/settings/change_password","reportSignInUrl":"http://127.0.0.1:3030/report_signin","verifyPrimaryEmailUrl":"http://127.0.0.1:3030/verify_primary_email","verifySecondaryEmailUrl":"http://127.0.0.1:3030/verify_secondary_email"},"maxEventLoopDelay":0,"scrypt":{"maxPending":0},"i18n":{"defaultLanguage":"en","supportedLanguages":["ar","ast","az","bg","bn-BD","cak","cs","cy","da","de","dsb","en","en-GB","es","es-AR","es-CL","es-ES","es-MX","et","fa","ff","fi","fr","fy","fy-NL","he","hi-IN","hsb","hu","id","it","ja","ka","kab","kk","ko","lt","lv","nl","nb-NO","nn-NO","pa","pl","pt","pt-BR","pt-PT","rm","ro","ru","sk","sl","sq","sr","sr-LATN","sv","sv-SE","te","tr","uk","zh-CN","zh-TW"]},"redis":{"enabled":true,"host":"127.0.0.1","port":6379,"sessionsKeyPrefix":"fxa-auth-session","maxConnections":200,"minConnections":2,"maxPending":1000,"retryCount":5,"initialBackoff":100},"tokenLifetimes":{"accountResetToken":900000,"passwordForgotToken":3600000,"passwordChangeToken":900000,"sessionTokenWithoutDevice":2419200000},"tokenPruning":{"enabled":true,"maxAge":2592000000},"verifierVersion":1,"snsTopicArn":"arn:aws:sns:local-01:000000000000:local-topic1","snsTopicEndpoint":"http://localhost:4100/","emailNotifications":{"region":"","bounceQueueUrl":"","complaintQueueUrl":"","deliveryQueueUrl":""},"profileServerMessaging":{"region":"","profileUpdatesQueueUrl":""},"useHttps":false,"keyPath":"/home/laran/fxa-auth-server/key.pem","certPath":"/home/laran/fxa-auth-server/cert.pem","lockoutEnabled":true,"deviceUpdatesEnabled":true,"deviceNotificationsEnabled":true,"oauth":{"url":"http://localhost:9010","keepAlive":false,"clientIds":{},"clientInfoCacheTTL":259200000},"metrics":{"flow_id_key":"YOU MUST CHANGE ME","flow_id_expiry":7200000},"corsOrigin":["*"],"clientAddressDepth":3,"signinConfirmation":{"forcedEmailAddresses":"/.+@mozilla\\.com$/","skipForNewAccounts":{"enabled":true,"maxAge":14400000},"tokenVerificationCode":{"codeLength":8,"codeLifetime":3600000}},"securityHistory":{"ipProfiling":{"allowedRecency":0}},"lastAccessTimeUpdates":{"enabled":true,"sampleRate":1,"earliestSaneTimestamp":1507081020000},"signinUnblock":{"codeLength":8,"codeLifetime":3600000,"forcedEmailAddresses":"/^$/"},"hpkpConfig":{"enabled":false,"reportOnly":true,"reportUri":"","includeSubDomains":true,"maxAge":1,"sha256s":[]},"push":{"allowedServerRegex":"/^https:\\/\\/[a-zA-Z0-9._-]+(\\.services\\.mozilla\\.com|autopush\\.dev\\.mozaws\\.net|autopush\\.stage\\.mozaws\\.net)(\\/.*)?$/"},"sms":{"enabled":true,"useMock":true,"isStatusGeoEnabled":false,"apiRegion":"us-east-1","countryCodes":["AT","AU","BE","CA","DE","DK","ES","FR","GB","IT","LU","NL","PT","US"],"installFirefoxLink":"https://mzl.la/firefoxapp","installFirefoxWithSigninCodeBaseUri":"https://accounts.firefox.com/m","enableBudgetChecks":true,"minimumCreditThresholdUSD":200},"secondaryEmail":{"minUnverifiedAccountTime":86400000},"signinCodeSize":6,"emailStatusPollingTimeout":2592000000,"sentryDsn":"","totp":{"serviceName":"Firefox","step":30,"window":1,"recoveryCodes":{"length":10,"count":8,"notifyLowCount":2}},"isProduction":false}
fxa-auth-server.CRITICAL: uncaughtException Error: The module '/home/laran/fxa-auth-server/node_modules/scrypt-hash/build/Release/scrypt.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:731:18)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at bindings (/home/laran/fxa-auth-server/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/laran/fxa-auth-server/node_modules/scrypt-hash/index.js:1:97)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/laran/fxa-auth-server/lib/crypto/scrypt.js:8:19)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fxa-auth-server@1.114.1 start: `NODE_ENV=dev scripts/start-local.sh 2>&1`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fxa-auth-server@1.114.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
mail_helper started...

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/laran/.npm/_logs/2018-06-19T12_57_47_410Z-debug.log

And the log file

cat /home/laran/.npm/_logs/2018-06-19T12_57_47_410Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@6.1.0
3 info using node@v10.4.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle fxa-auth-server@1.114.1~prestart: fxa-auth-server@1.114.1
6 info lifecycle fxa-auth-server@1.114.1~start: fxa-auth-server@1.114.1
7 verbose lifecycle fxa-auth-server@1.114.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle fxa-auth-server@1.114.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/laran/fxa-auth-server/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle fxa-auth-server@1.114.1~start: CWD: /home/laran/fxa-auth-server
10 silly lifecycle fxa-auth-server@1.114.1~start: Args: [ '-c', 'NODE_ENV=dev scripts/start-local.sh 2>&1' ]
11 silly lifecycle fxa-auth-server@1.114.1~start: Returned: code: 1  signal: null
12 info lifecycle fxa-auth-server@1.114.1~start: Failed to exec start script
13 verbose stack Error: fxa-auth-server@1.114.1 start: `NODE_ENV=dev scripts/start-local.sh 2>&1`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:961:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
14 verbose pkgid fxa-auth-server@1.114.1
15 verbose cwd /home/laran/fxa-auth-server
16 verbose Linux 4.9.103-xxxx-std-ipv6-64
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v10.4.1
19 verbose npm  v6.1.0
20 error code ELIFECYCLE
21 error errno 1
22 error fxa-auth-server@1.114.1 start: `NODE_ENV=dev scripts/start-local.sh 2>&1`
22 error Exit status 1
23 error Failed at the fxa-auth-server@1.114.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
vladikoff commented 6 years ago

Logs say 'gyp ERR! node -v v10.4.1'. That should be node 8

kettbi commented 6 years ago
laran@serv:~/fxa-auth-server$ node -v
v8.11.3

Edit : with sudo

laran@serv:~/fxa-auth-server$ sudo node -v
v10.4.1

Maybe the script use this version. I'll try to downgrade this version, thanks.

vladikoff commented 6 years ago

@kettbi I was looking at the logs you just pasted above

kettbi commented 6 years ago

Downgrading node :

sudo npm cache clean -f
sudo npm install -g n
sudo n 8.11.3

It seems to work, thank you

tokenflow commented 5 years ago

Same issue today while installing fsevents , d3 Downgrading to 8.11.3 solved this issue