v2.5.2
Giriş yap

M1 İşlemcili MacBook Node Js ve Angular Kurulumu

anlaltun
1,017 defa görüntülendi

Herkese merhaba;
M1 işlemcili Macbook üzerine Node Js ve Andular kurulumda aşağıda ki hatayı alıyorum.
Bunu nasıl çözebilirim.
Visual Studio Code editörü kullanıyorum.

Terminal Çıktısı:

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
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! 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:

Cevap yaz
Cevaplar (2)
sync
1130 gün önce

Merhaba,

Kurulumları sudo ile yetkilendirekek yapmalısın.

Örneğin;

npm install

değil de,

sudo npm install
sudo npm install -g

şeklinde daha sonra açılış şifreni girerek root olarak kurulum yapabilirsin. Aldığın hata ortadan kalkacaktır.

zafer
1130 gün önce

Merhaba anlaltun,

NodeJS ve angular hakkında çok bilgim yok. Ancak senin hata mesajlarına bakınca bir yetki hatasından kaynaklanan sorunlar olduğunu görüyorum.

Yetkilendirme konusunu biraz daha araştırıp denemeler yapabilirsin.