yeoman / yo

CLI tool for running Yeoman generators
http://yeoman.io
BSD 2-Clause "Simplified" License
3.85k stars 399 forks source link

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

Open RandallFlagg opened 6 years ago

RandallFlagg commented 6 years ago

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

Expected behavior

yo is installed

Current behavior

error upath@1.0.2: 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 upath@1.0.2: 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.
joseananio commented 6 years ago

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?

sunzongzheng commented 4 years ago

same here,macos

dodok8 commented 4 years ago

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