volta icon indicating copy to clipboard operation
volta copied to clipboard

`npm link` does not work with `npm 10`

Open equiman opened this issue 2 years ago • 5 comments

I've formatted my PC and reinstalled everything again, including volta following the instructions and activating de developer mode. image

I've tried the npm link command and does not show errors but definitelly does not work well. image

I've tested it on WSL installing the unixish volta version and it already works. image

So, I think it is something related to volta on windows side (maybe symlinks).

Versions

# PowerShell
> systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045

> volta --version
1.1.1

> volta install node@lts

> npm --version && node --version
10.1.0
v20.9.0

Steps

Clone this project https://github.com/deinsoftware/swpm

Run the commands:

npm ci
npm run build
cd bin
npm link
swpm --info

equiman avatar Oct 31 '23 02:10 equiman

I've tested today uninstalling volta, and installing node LTS directly from installer, and works as expected, so indeed is something related to volta.

image

equiman avatar Oct 31 '23 22:10 equiman

I'm experiencing this as well using:

  • macOS 14.3.1
  • Votla 1.1.1
  • node v21.7.3
  • npm 10.5.0

uri avatar Apr 19 '24 18:04 uri

Same for me.

  • macOS 14.5
  • volta 1.1.1
  • node v20.11.1
  • npm 10.2.4

petermunro avatar Jun 21 '24 11:06 petermunro

Thanks for the report, and sorry this is happening! One of us will try to poke at this soon (and of course if folks feel like doing investigation/debugging directly, feel free).

Edit: I have confirmed locally that it’s broken, going to see if I can figure out why!

chriskrycho avatar Jul 10 '24 17:07 chriskrycho