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].
β 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.
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
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!
Most helpful comment
I ran
yarn global upgrade-interactiveto fix the issue: