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

[BUG] Error when npm i with arcon #3970

Closed
1 task done
PadowYT2 opened this issue Nov 2, 2021 · 3 comments
Closed
1 task done

[BUG] Error when npm i with arcon #3970

PadowYT2 opened this issue Nov 2, 2021 · 3 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@PadowYT2
Copy link

PadowYT2 commented Nov 2, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

With arcon located in package.json and running npm i or trying install it, gives an error

npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! path ../acorn/bin/acorn
npm ERR! dest /var/www/cdn-padow/node_modules/.bin/acorn
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, symlink '../acorn/bin/acorn' -> '/var/www/cdn-padow/node_modules/.bin/acorn'
npm ERR!  [Error: EPERM: operation not permitted, symlink '../acorn/bin/acorn' -> '/var/www/cdn-padow/node_modules/.bin/acorn'] {
npm ERR!   errno: -1,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../acorn/bin/acorn',
npm ERR!   dest: '/var/www/cdn-padow/node_modules/.bin/acorn'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
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.

Expected Behavior

It should install/build normal

Steps To Reproduce

  1. Make a package.json
  2. Try installing arcon
  3. Get error

Environment

  • OS: Ubuntu 20.04
  • Node: 16.13.0
  • npm: 8.1.0
@PadowYT2 PadowYT2 added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Nov 2, 2021
@PadowYT2
Copy link
Author

PadowYT2 commented Nov 4, 2021

Can it happen because the folder is mounted to an another disk?

@wraithgar
Copy link
Member

You are correct, you can't create symlinks across disks. There isn't much npm can do about this.

@jadeye
Copy link

jadeye commented Feb 7, 2023

Had the same issue installing node_modules to a USB drive. Using therocco's answer did the job for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

No branches or pull requests

3 participants