yo icon indicating copy to clipboard operation
yo copied to clipboard

yo can't install, using yarn, with node > 9 due to upath package

Open RandallFlagg opened this issue 6 years ago • 3 comments

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 (run node --version in your terminal)
  • npm version: x.x.x (run npm --version in your terminal)
  • yarn version: 1.7.0 (run yarn --version in your terminal)
  • Version of yo : N/A (run yo --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

  1. use node 10
  2. 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.

RandallFlagg avatar May 27 '18 22:05 RandallFlagg

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?

joseananio avatar Oct 22 '18 10:10 joseananio

same here,macos

sunzongzheng avatar Feb 10 '20 03:02 sunzongzheng

I have a same error. My yarn version is 1.22.4 and Node.js is 12.16.0 and I use window10

dodok8 avatar Apr 14 '20 16:04 dodok8