-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm link error EPERM #2079
Comments
the logged message is admittedly a little confusing.. what it's trying to do is create a symlink at can you confirm you're able to write files to the |
Yes:
According to Google, it seems that only admins can create symbolic links on Windows: With further testing, I found that this throws: import {symlink} from "fs/promises";
await symlink(
'..\\..\\..\\..\\dev\\wakfu-autobuild',
'C:\\Users\\eight04\\AppData\\Roaming\\npm\\node_modules\\wakfu-autobuild',
'dir'
); This works: import {symlink} from "fs/promises";
await symlink(
'..\\..\\..\\..\\dev\\wakfu-autobuild',
'C:\\Users\\eight04\\AppData\\Roaming\\npm\\node_modules\\wakfu-autobuild',
'junction'
); (Both works if I open cmd as admin) However, I haven't seen this error until npm@7. Was something changed in the new version? |
Possibly related to #1923 , which I can repro running |
@CAM-Gerlach what about npm v7.0.7? |
Current Behavior:
Expected Behavior:
Shouldn't the path be
.
instead of..\..\..\..\dev\wakfu-autobuild
? Or at least it should be..\..\dev\wakfu-autobuild
.Steps To Reproduce:
npm link
in a package.I have this issue on multiple packages so I guess it's not a package issue. You can find them here:
https://github.com/eight04/sync-version
https://github.com/eight04/wakfu-autobuild
Environment:
The text was updated successfully, but these errors were encountered: