yo
yo copied to clipboard
yo can't install, using yarn, with node > 9 due to upath package
Type of issue
Bug
Make the install of yo available through yarn.
It seems the version of upath used by some yo dependency is too low and doesn't support node 10. The current version of upath supports node 10. Upgrade is needed for the upath version.
My environment
-
OS version/details:
Windows 10 64-bit
-
Node version:
10.1.0
(runnode --version
in your terminal) -
npm version:
x.x.x
(runnpm --version
in your terminal) -
yarn version:
1.7.0
(runyarn --version
in your terminal) -
Version of yo :
N/A
(runyo --version
in your terminal)
Expected behavior
yo is installed
Current behavior
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9". error Found incompatible module
Steps to reproduce the behavior
- use node 10
- yarn global add yo
Command line output
yarn global add generator-code
yarn global v1.7.0
[1/4] Resolving packages...
⠂ generator-code(node:8380) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[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.
I got this same error when I tried to access my repository on a windows system. I never encounter node version errors on Linux with yarn and this is after node 10.1.0. Anyone has a solution? Is it possible this is a Windows only situation?
same here,macos
I have a same error. My yarn version is 1.22.4 and Node.js is 12.16.0 and I use window10