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

Unable to install edgekv-importer due to permissions issue #145

Closed
avulaharish opened this issue Apr 4, 2022 · 1 comment
Closed

Unable to install edgekv-importer due to permissions issue #145

avulaharish opened this issue Apr 4, 2022 · 1 comment

Comments

@avulaharish
Copy link

Note: Similar issue has been reported here npm/cli#4158

Hello Folks, after installing npm locally, when i tried to install the edgekv-importer locally, i am seeing this error:

xyz@abc edgekv-importer % sudo npm install -g
Password:
npm ERR! code EPERM
npm ERR! syscall lchown
npm ERR! path /usr/local/bin/sentinelctl
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'
npm ERR! [Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lchown',
npm ERR! path: '/usr/local/bin/sentinelctl'
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.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xyz/.npm/_logs/2022-04-04T13_11_12_440Z-debug-0.log

Anyone faced this error before? Even as a root, its the same issue:

xyz:edgekv-importer root# npm install -g
npm ERR! code EPERM
npm ERR! syscall lchown
npm ERR! path /usr/local/bin/sentinelctl
npm ERR! errno -1
npm ERR! Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'
npm ERR! [Error: EPERM: operation not permitted, lchown '/usr/local/bin/sentinelctl'] {
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lchown',
npm ERR! path: '/usr/local/bin/sentinelctl'
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.

npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2022-04-04T13_13_23_529Z-debug-0.log

Thank you,
H

@avulaharish
Copy link
Author

Update: Solved this issue with installing node via homebrew

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

No branches or pull requests

1 participant