Skocz do zawartości

Witaj!

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

Zdjęcie
- - - - -

Instalacja React z terminala


  • Zaloguj się, aby dodać odpowiedź
1 odpowiedź w tym temacie

#1 Darkfutur

Darkfutur
  • 550 postów

Napisano 06 listopada 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
  • 1 392 postów
  • SkądWAW, PL

Napisano 07 listopada 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.
:)





Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych