Skip to content

[BUG] npm link error EPERM #2079

Description

@eight04

Current Behavior:

C:\Users\eight04\dev\wakfu-autobuild>npm link
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ..\..\..\..\dev\wakfu-autobuild
npm ERR! dest C:\Users\eight04\AppData\Roaming\npm\node_modules\wakfu-autobuild
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, symlink '..\..\..\..\dev\wakfu-autobuild' -> 'C:\Users\eight04\AppData\Roaming\npm\node_modules\wakfu-autobuild'
npm ERR!  [Error: EPERM: operation not permitted, symlink '..\..\..\..\dev\wakfu-autobuild' -> 'C:\Users\eight04\AppData\Roaming\npm\node_modules\wakfu-autobuild'] {
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '..\\..\\..\\..\\dev\\wakfu-autobuild',
npm ERR!   dest: 'C:\\Users\\eight04\\AppData\\Roaming\\npm\\node_modules\\wakfu-autobuild'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\eight04\AppData\Local\npm-cache\_logs\2020-10-29T09_57_33_549Z-debug.log

Expected Behavior:

Shouldn't the path be . instead of ..\..\..\..\dev\wakfu-autobuild? Or at least it should be ..\..\dev\wakfu-autobuild.

Steps To Reproduce:

  • Run 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:

  • OS: Windows 10
  • Node: 15.0.1
  • npm: 7.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions