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

Problems installing yarn with npm #36

Open
alitnery opened this issue May 31, 2021 · 4 comments
Open

Problems installing yarn with npm #36

alitnery opened this issue May 31, 2021 · 4 comments

Comments

@alitnery
Copy link

#This is all my problem
---> npm install --global yarn
npm WARN checkPermissions Missing write access to /usr/local/lib
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib' }
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! /home/an/.npm/_logs/2021-05-31T19_05_04_058Z-debug.log

@Asgarrrr
Copy link
Owner

Hi !

This simply means that npm is not allowed to write to the /usr/local/lib folder :/

@alitnery
Copy link
Author

alitnery commented Jun 8, 2021

Hi!
Sorry but I can handle it

Actually, rigth now I have this

(base) an@DESKTOP-IU637JE:/mnt/c/Users/Alitnery/Documents/Programas_Linux$ npm install -g npm
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /home/an/.npm-global/lib/node_modules/.staging/npm-87b0b1ef/node_modules/string-width
npm ERR! dest /home/an/.npm-global/lib/node_modules/.staging/string-width-0605772d
npm ERR! errno -13
npm ERR!
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR!
npm ERR! To permanently fix this problem, please run:
npm ERR! sudo chown -R 1000:1000 "/home/an/.npm"

npm ERR! A complete log of this run can be found in:
npm ERR! /home/an/.npm/_logs/2021-06-08T17_30_25_101Z-debug.log

#and

(base) an@DESKTOP-IU637JE:~$ mv .npm /Programas:Linux
mv: cannot move '.npm' to '/Programas:Linux': Permission denied

I do not what to do to fix it

@yamaiYuzuru
Copy link

try sudo npm install --global yarn
I guess it will help.

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

3 participants