Nativefier: Installation fails with yarn due to [email protected]

Created on 16 Jul 2018  Β·  9Comments  Β·  Source: jiahaog/nativefier

Description

When I try to install nativefier using yarn, it fails due to engine incompatibility from upath. I realise that this could be handled by changing yarn settings - yarn config set ignore-engines true. Also, the issue was fixed upstream(anodynos/upath#15) but for some reason yarn tries to install [email protected].

Steps to reproduce issue

➜ yarn global add nativefier
yarn global v1.7.0
(node:31075) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] πŸ”  Resolving packages...
warning nativefier > electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Details

  • Are you nativefying a public website?

    NA

  • Feature request? Have you looked at nativefier --help to see if an existing option could fit your needs?

    NA

  • Full nativefier command used to build your app: <command here>

    NA

  • Version of Nativefier (run nativefier --version): v0.0.0

    NA

  • Version of node.js (run node --version): v0.0.0

    v10.6.0

  • OS: <OS here>

    Ubuntu 18.04 LTS

  • Error message / stack trace (if any):

    See above

need-info

Most helpful comment

I ran yarn global upgrade-interactive to fix the issue:

➜ yarn global upgrade-interactive 
yarn global v1.7.0
(node:12999) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info Color legend : 
 "<red>"    : Major Update backward-incompatible updates 
 "<yellow>" : Minor Update backward-compatible features 
 "<green>"  : Patch Update backward-compatible bug fixes
? Choose which packages to update. 
? Choose which packages to update. [email protected], [email protected], [email protected], [email protected]
info Installing "dependencies"...
[1/4] πŸ”  Resolving packages...
warning snyk > proxy-agent > socks-proxy-agent > [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
[2/4] 🚚  Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
success Saved 409 new dependencies.
info Direct dependencies
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
└─ [email protected]
info All dependencies
...
β”œβ”€ [email protected]
...
✨  Done in 31.08s.
➜ yarn global add nativefier                         
yarn global v1.7.0
[1/4] πŸ”  Resolving packages...
β ‚ nativefier(node:13096) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning nativefier > electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
[2/4] 🚚  Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Installed "[email protected]" with binaries:
      - nativefier
✨  Done in 6.77s.

All 9 comments

Hi @sudo-suhas, thanks for the feedback πŸ™‚. Couldn't reproduce, the issue must have been fixed recently in one of {upath, yarn}, or maybe us, I bumped our dependencies recently.

Logs:

 /opt/nativefier (master|βœ”) node --version
v10.7.0

 /opt/nativefier (master|βœ”) yarn install
yarn install v1.7.0
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
warning gulp > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning gulp > vinyl-fs > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
warning gulp > vinyl-fs > glob-stream > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-stream > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
warning jest > jest-cli > istanbul-api > [email protected]: 1.2.0 should have been a major version bump
[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@2 || 3 || 4".
warning " > [email protected]" has incorrect peer dependency "eslint@^4.19.1".
[5/5] Building fresh packages...

success Saved lockfile.
Done in 23.20s.

I tried it again just now, not fixed :disappointed:

➜ yarn global add nativefier
yarn global v1.7.0
(node:22777) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] πŸ”  Resolving packages...
warning nativefier > electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

@sudo-suhas πŸ‘. Hmmmm could be fixed in 7.6.6, then, which is what I installed and which isn't yet on npm. Re-opening, will ask for feedback once 7.6.6 is on npm.

Thanks @ronjouch, will do.

@sudo-suhas 7.6.6 is on npm, can you try again? Here yarn add nativefier worked with node 10.7.0 and yarn 1.7.0.

I tried it just now, not working.

The issue is not due to nativefier:

➜ yarn add nativefier
yarn add v1.7.0
[1/4] πŸ”  Resolving packages...
⠁ (node:12594) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning nativefier > electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...

success Saved lockfile.
success Saved 184 new dependencies.
...
➜ yarn why upath
yarn why v1.7.0
[1/4] πŸ€”  Why do we have the module "upath"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] πŸ”  Finding dependency...
error We couldn't find a match!
✨  Done in 0.32s.
➜ cat yarn.lock | grep upath

I ran yarn global upgrade-interactive to fix the issue:

➜ yarn global upgrade-interactive 
yarn global v1.7.0
(node:12999) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info Color legend : 
 "<red>"    : Major Update backward-incompatible updates 
 "<yellow>" : Minor Update backward-compatible features 
 "<green>"  : Patch Update backward-compatible bug fixes
? Choose which packages to update. 
? Choose which packages to update. [email protected], [email protected], [email protected], [email protected]
info Installing "dependencies"...
[1/4] πŸ”  Resolving packages...
warning snyk > proxy-agent > socks-proxy-agent > [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
[2/4] 🚚  Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
success Saved 409 new dependencies.
info Direct dependencies
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
└─ [email protected]
info All dependencies
...
β”œβ”€ [email protected]
...
✨  Done in 31.08s.
➜ yarn global add nativefier                         
yarn global v1.7.0
[1/4] πŸ”  Resolving packages...
β ‚ nativefier(node:13096) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning nativefier > electron-packager > electron-download > nugget > progress-stream > through2 > xtend > [email protected]: 
[2/4] 🚚  Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Installed "[email protected]" with binaries:
      - nativefier
✨  Done in 6.77s.

@sudo-suhas only your solution works for me.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raulcraveiro picture raulcraveiro  Β·  4Comments

jjgalvez picture jjgalvez  Β·  3Comments

mklaber picture mklaber  Β·  5Comments

desimaniac picture desimaniac  Β·  4Comments

danielyli picture danielyli  Β·  5Comments