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

npm link can't get avaliable path #1969

Open
Licheung228 opened this issue Dec 18, 2024 · 0 comments
Open

npm link can't get avaliable path #1969

Licheung228 opened this issue Dec 18, 2024 · 0 comments

Comments

@Licheung228
Copy link

env

version

Volta v2.0.2
npm v10.9.2
node v23.4.0

paltform

windows 11

desc

when I use npm link ../<some package> , error :

Could not locate the package '..\color-console\'

Please ensure it is available by running `npm link` in its source directory.
Error details written to C:\Users\dev-e\AppData\Local\Volta\log\volta-error-2024-12-18_14_11_43.224.log

I ensure my package is avaliable. and use pnpm can link success.
but can't pnpm link -g
with logger, I think get package.json is failed: "from C:\Users\dev-e\AppData\Local\Volta\tools\user\packages..\color-console.json"
path should be "........\package.json"

loggers

"C:\\Program Files\\Volta\\npm.exe" "link" "..\\color-console\\"
Volta v2.0.2

Could not locate the package '..\color-console\'

Please ensure it is available by running `npm link` in its source directory.

Error cause: Could not read package configuration file
from C:\Users\dev-e\AppData\Local\Volta\tools\user\packages\..\color-console\.json

Please ensure you have correct permissions to the Volta directory.

Error cause: 系统找不到指定的路径。 (os error 3)
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

1 participant