yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.39k stars 2.72k forks source link

`upgrade` hangs on "iltorb" step #5378

Open altano opened 6 years ago

altano commented 6 years ago

Bug report

I was trying to make sure I have the latest version of create-react-app by running yarn global upgrade create-react-app in PowerShell on Windows 10. This is where the install appeared to hang:

C:\src> yarn global upgrade create-react-app
yarn global v1.3.2
warning package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
[1/2] ⠈ iltorb: using node@9.2.0 | win32 | x64
[-/2] ⠈ waiting...
[-/2] ⠈ waiting...
[-/2] ⠈ waiting...
[-/2] ⠈ waiting...

I left it running for ~7 minutes with no activity before giving up.

If I ctrl-c it appears to continue the installation and succeed but obviously installation that was interrupted can't be trusted. But as I said, I actually already have the latest version.

Environment:

node v9.2.0 npm v5.5.1 yarn v1.3.2 create-react-app v1.5.2 Windows 10 (latest) PowerShell

rally25rs commented 6 years ago

Yarn is likely waiting for iltorb's install script to finish. It looks like that package uses node-gyp to build some native code. You might try reinstalling node-gyp, or just manually running the install script to see if there are any errors or if it completes successfully when run outside of Yarn.