volta icon indicating copy to clipboard operation
volta copied to clipboard

npm link error!

Open xukaishan opened this issue 3 years ago • 1 comments

Volta error: Could not create shared environment for package 'my-link-package' Please ensure you have correct permissions to the Volta directory. my package.json: { "name": "my-link-package", .... "volta": { "node": "8.0.0", "npm": "5.0.0" } }

xukaishan avatar Jun 22 '22 08:06 xukaishan

Hi @xukaishan, thanks for reporting! That's an error with one of the internal tasks that Volta takes when setting up its filesystem layout. Can you share more about the environment? What OS & Version are you using? What Volta version (volta -v)? Is it possible to share the full package.json so that we can attempt to reproduce the error? Or if it's private / internal code, is it possible to create a non-proprietary one that still reproduces the error?

charlespierce avatar Jun 23 '22 23:06 charlespierce

I've got the same error, trying to link a command from a repostitory to debug it locally.

OS: Windows 10 Terminal: Git with Bash Volta: 1.0.8 Node: 18.10.0 npm: 8.19.2

But I found it was my mistake because I'm using the command npm link my-package and it only requires the command npm link

Hope it help others.

equiman avatar Oct 05 '22 09:10 equiman