Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corepack included in Node 16.9.0, where is it? #52

Closed
lockHrt opened this issue Sep 9, 2021 · 5 comments
Closed

Corepack included in Node 16.9.0, where is it? #52

lockHrt opened this issue Sep 9, 2021 · 5 comments

Comments

@lockHrt
Copy link

lockHrt commented Sep 9, 2021

Hi,
I just installed node v16.9.0 (using nvm-windows) which supposed to include corepack right off the bat. But when I open terminal and typed corepack enable, I'm getting usual error corepack : The term 'corepack' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I searched the whole drive for corepack and didn't find anything. So where is it? Do I still need to install it using npm?

@merceyz
Copy link
Member

merceyz commented Sep 9, 2021

It seems like nvm-windows isn't including it so you should file an issue in their repo https://github.com/coreybutler/nvm-windows/

@coreybutler
Copy link
Member

coreybutler commented Sep 10, 2021

It appears there is no bundle/binary supporting Windows yet. The only available binaries are at https://github.com/nodejs/corepack/actions/runs/276463953.

@richardlau
Copy link
Member

I just downloaded https://nodejs.org/dist/v16.9.0/node-v16.9.0-win-x64.zip and it's there.

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>dir
 Volume in drive C is Windows
 Volume Serial Number is FA68-A5CE

 Directory of C:\Users\rlau\Downloads\node-v16.9.0-win-x64

07/09/2021  08:43    <DIR>          .
07/09/2021  08:43    <DIR>          ..
07/09/2021  08:25            55,012 CHANGELOG.md
31/08/2021  07:00               335 corepack
31/08/2021  07:00               218 corepack.cmd
31/08/2021  07:00             3,032 install_tools.bat
31/08/2021  07:00            84,144 LICENSE
07/09/2021  08:43        59,538,568 node.exe
27/04/2020  21:13               702 nodevars.bat
27/04/2020  21:13            10,630 node_etw_provider.man
07/09/2021  08:43    <DIR>          node_modules
31/08/2021  07:00             1,409 npm
31/08/2021  07:00               483 npm.cmd
31/08/2021  07:00             1,552 npx
31/08/2021  07:00               539 npx.cmd
03/09/2021  07:00            32,636 README.md
              13 File(s)     59,729,260 bytes
               3 Dir(s)  41,669,623,808 bytes free

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>corepack
━━━ Corepack - 0.9.0 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  $ corepack <command>

━━━ General commands ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  corepack disable [--install-directory #0] ...
    Remove the Corepack shims from the install directory

  corepack enable [--install-directory #0] ...
    Add the Corepack shims to the install directories

  corepack hydrate [--activate] <fileName>
    Import a package manager into the cache

  corepack prepare [--activate] [--all] [--json] [-o,--output] ...
    Generate a package manager archive

You can also print more details about any of these commands by calling them with
the `-h,--help` flag right after the command name.

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>corepack enable

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>dir
 Volume in drive C is Windows
 Volume Serial Number is FA68-A5CE

 Directory of C:\Users\rlau\Downloads\node-v16.9.0-win-x64

10/09/2021  17:54    <DIR>          .
10/09/2021  17:54    <DIR>          ..
07/09/2021  08:25            55,012 CHANGELOG.md
31/08/2021  07:00               335 corepack
31/08/2021  07:00               218 corepack.cmd
31/08/2021  07:00             3,032 install_tools.bat
31/08/2021  07:00            84,144 LICENSE
07/09/2021  08:43        59,538,568 node.exe
27/04/2020  21:13               702 nodevars.bat
27/04/2020  21:13            10,630 node_etw_provider.man
07/09/2021  08:43    <DIR>          node_modules
31/08/2021  07:00             1,409 npm
31/08/2021  07:00               483 npm.cmd
31/08/2021  07:00             1,552 npx
31/08/2021  07:00               539 npx.cmd
10/09/2021  17:54               315 pnpm
10/09/2021  17:54               210 pnpm.cmd
10/09/2021  17:54               849 pnpm.ps1
10/09/2021  17:54               315 pnpx
10/09/2021  17:54               210 pnpx.cmd
10/09/2021  17:54               849 pnpx.ps1
03/09/2021  07:00            32,636 README.md
10/09/2021  17:54               315 yarn
10/09/2021  17:54               210 yarn.cmd
10/09/2021  17:54               849 yarn.ps1
10/09/2021  17:54               321 yarnpkg
10/09/2021  17:54               216 yarnpkg.cmd
10/09/2021  17:54               861 yarnpkg.ps1
              25 File(s)     59,734,780 bytes
               3 Dir(s)  41,667,641,344 bytes free

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>yarn --version
1.22.11

C:\Users\rlau\Downloads\node-v16.9.0-win-x64>

@coreybutler
Copy link
Member

This issue really should be closed in favor of coreybutler/nvm-windows#660 (I pulled the upstream-bug tag off, since NVM4W can work with what corepack is supplying in the distro).

@arcanis arcanis closed this as completed Sep 10, 2021
@coreybutler
Copy link
Member

NVM for Windows v1.1.8 has shipped with corepack support: https://github.com/coreybutler/nvm-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants