Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharp built with wrong NODE_MODULE_VERSION #1656

Closed
GunterJameda opened this issue Apr 12, 2019 · 4 comments
Closed

Sharp built with wrong NODE_MODULE_VERSION #1656

GunterJameda opened this issue Apr 12, 2019 · 4 comments
Labels

Comments

@GunterJameda
Copy link

I got an error similar to the one referenced in #1374.

The main differences is that I'm trying to run the application only in a dev server in mac OS and it asks for NODE_MODULE_VERSION 69 when the latest one available is 67.

What can I do...?

@lovell
Copy link
Owner

lovell commented Apr 12, 2019

What is the output of running npm install --verbose sharp?

What is the output of running npx envinfo --binaries --languages --system --utilities?

Have you ensured the platform and version of Node.js used for npm install is the same as the platform and version of Node.js used at runtime?

@GunterJameda
Copy link
Author

@lovell

For npm install --verbose sharp:

npm info it worked if it ends with ok
npm verb cli [ '/Users/pedrobarbosa/.nvm/versions/node/v11.14.0/bin/node',
npm verb cli   '/Users/pedrobarbosa/.nvm/versions/node/v11.14.0/bin/npm',
npm verb cli   'install',
npm verb cli   '--verbose',
npm verb cli   'sharp' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session ca8d59f1fa824fe1
npm http fetch GET 304 https://registry.npmjs.org/sharp 2305ms (from cache)
npm timing stage:loadCurrentTree Completed in 6522ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 33ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 2116ms
npm http fetch GET 304 https://registry.npmjs.org/fs-copy-file-sync 87ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar 92ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/color 3121ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bindings 3127ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-get 3126ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prebuild-install 3129ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 3130ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/file-uri-to-path 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/color-string 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-swizzle 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-arrayish 37ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/expand-template 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/napi-build-utils 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/github-from-package 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/noop-logger 67ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/which-pm-runs 67ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-fs 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimist 98ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/decompress-response 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-concat 57ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mimic-response 44ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/pump 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-stream 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/to-buffer 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bl 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-constants 50ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/yallist 37ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 6972ms
npm timing stage:loadIdealTree Completed in 10195ms
npm timing stage:generateActionsToTake Completed in 202ms
npm verb correctMkdir /Users/pedrobarbosa/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /Users/pedrobarbosa/.npm/_locks/staging-bbfb31b66d02ba7d.lock for /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/.staging
npm timing action:extract Completed in 210ms
npm info lifecycle [email protected]~preuninstall: [email protected]
npm info lifecycle [email protected]~uninstall: [email protected]
npm verb unbuild rmStuff [email protected] from /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules
npm info lifecycle [email protected]~postuninstall: [email protected]
npm info lifecycle [email protected]~preuninstall: [email protected]
npm info lifecycle [email protected]~uninstall: [email protected]
npm verb unbuild rmStuff [email protected] from /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules
npm info lifecycle [email protected]~postuninstall: [email protected]
npm info lifecycle @angular-builders/[email protected]~preuninstall: @angular-builders/[email protected]
npm info lifecycle @angular-builders/[email protected]~uninstall: @angular-builders/[email protected]
npm verb unbuild rmStuff @angular-builders/[email protected] from /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules
npm info lifecycle @angular-builders/[email protected]~postuninstall: @angular-builders/[email protected]
npm info lifecycle @angular-builders/[email protected]~preuninstall: @angular-builders/[email protected]
npm info lifecycle @angular-builders/[email protected]~uninstall: @angular-builders/[email protected]
npm verb unbuild rmStuff @angular-builders/[email protected] from /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules
npm info lifecycle @angular-builders/[email protected]~postuninstall: @angular-builders/[email protected]
npm timing action:unbuild Completed in 7ms
npm timing action:remove Completed in 406ms
npm timing action:finalize Completed in 18ms
npm timing action:refresh-package-json Completed in 42ms
npm info lifecycle [email protected]~preinstall: [email protected]
npm timing action:preinstall Completed in 3ms
npm info linkStuff [email protected]
npm timing action:build Completed in 3ms
npm info lifecycle [email protected]~install: [email protected]

> [email protected] install /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached /Users/pedrobarbosa/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz
prebuild-install info begin Prebuild-install version 5.2.5
prebuild-install info looking for cached prebuild @ /Users/pedrobarbosa/.npm/_prebuilds/56eed7-sharp-v0.22.0-node-v67-darwin-x64.tar.gz
prebuild-install info found cached prebuild
prebuild-install info unpacking @ /Users/pedrobarbosa/.npm/_prebuilds/56eed7-sharp-v0.22.0-node-v67-darwin-x64.tar.gz
prebuild-install info unpack resolved to /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/sharp/build/Release/sharp.node
prebuild-install info unpack required /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/sharp/build/Release/sharp.node successfully
prebuild-install info install Successfully installed prebuilt binary!
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle true
npm verb lifecycle [email protected]~install: PATH: /Users/pedrobarbosa/.nvm/versions/node/v11.14.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/sharp/node_modules/.bin:/Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/.bin:/Users/pedrobarbosa/.nvm/versions/node/v11.14.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
npm verb lifecycle [email protected]~install: CWD: /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/sharp
npm timing audit submit Completed in 780ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 780ms
npm timing audit body Completed in 2ms
npm timing action:install Completed in 3707ms
npm info lifecycle [email protected]~postinstall: [email protected]
npm timing action:postinstall Completed in 42ms
npm verb unlock done using /Users/pedrobarbosa/.npm/_locks/staging-bbfb31b66d02ba7d.lock for /Users/pedrobarbosa/development/albumteller-desktop-app/node_modules/.staging
npm timing stage:executeActions Completed in 4467ms
npm timing stage:rollbackFailedOptional Completed in 9ms
npm timing stage:runTopLevelLifecycles Completed in 22215ms
npm verb saving [ { name: 'sharp', spec: '^0.22.0', save: 'devDependencies' } ]
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm info lifecycle undefined~postshrinkwrap: undefined
npm WARN @angular/[email protected] requires a peer of zone.js@~0.8.26 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/exiftool-vendored.exe):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    win32
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   darwin
npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64

+ [email protected]
removed 3 packages, updated 1 package and audited 49741 packages in 24.482s
found 40 vulnerabilities (6 low, 22 moderate, 12 high)
  run `npm audit fix` to fix them, or `npm audit` for details
npm verb exit [ 0, true ]
npm timing npm Completed in 24997ms
npm info ok

For npx envinfo --binaries --languages --system --utilities:

npx: installed 1 in 1.516s

  System:
    OS: macOS High Sierra 10.13.6
    CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
    Memory: 1.46 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 11.14.0 - ~/.nvm/versions/node/v11.14.0/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 6.7.0 - ~/.nvm/versions/node/v11.14.0/bin/npm
  Utilities:
    CMake: 3.12.2 - /usr/local/bin/cmake
    Make: 3.81 - /usr/bin/make
    GCC: 4.2.1 - /usr/bin/gcc
    Git: 2.18.0 - /usr/local/bin/git
  Languages:
    Bash: 3.2.57 - /bin/bash
    Java: 1.8.0_181 - /usr/bin/javac
    Perl: 5.18.2 - /usr/bin/perl
    PHP: 7.1.23 - /usr/bin/php
    Python: 2.7.15 - /usr/local/bin/python
    Ruby: 2.3.7p456 - /usr/bin/ruby

And for the third question, yes I did.

@lovell
Copy link
Owner

lovell commented Apr 12, 2019

Please see #1522 for Electron 4 support.

@lovell
Copy link
Owner

lovell commented Apr 25, 2019

v0.22.1 now available with prebuilt binaries for Electron 4 and 5.

Please remember to run electron-rebuild (which may itself also need updating to pick up the new ABI versions),

@lovell lovell closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants