Jump to content

Witaj!

Zaloguj lub Zarejestruj się aby uzyskać pełny dostęp do forum.

Photo
- - - - -

Instalacja React z terminala


  • Please log in to reply
1 reply to this topic

#1 Darkfutur

Darkfutur
  • 550 posts

Posted 06 November 2019 - 21:56

Co jest nie tak ? Jestem zalogowany w systemie jako admin , ale nie chce sie instalowac. Pomoze ktoś ?

 

 

 

 

Last login: Wed Nov  6 21:30:55 on ttys002

Mareks-MacBook-Pro:~ Marek$ npm install -g create-react-app

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm ERR! code EACCES

npm ERR! syscall access

npm ERR! path /usr/local/lib/node_modules

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {

npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'access',

npm ERR!   path: '/usr/local/lib/node_modules'

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/Marek/.npm/_logs/2019-11-06T20_44_04_913Z-debug.log

Mareks-MacBook-Pro:~ Marek$ 

 



#2 pedros

pedros
  • 1392 posts
  • SkądWAW, PL

Posted 07 November 2019 - 04:57

It is likely you do not have the permissions to access this file as the current user

 
I słusznie, ja do /usr/local/lib mam root:admin rwxr-xr-x
 
poprzedź polecenie sudo i będzie git.
:)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users