Skip to content
Advertisement

npm ERR! code EACCES, npm install –global yarn met error

Mac mini (M1, 2020)

Monterey

Brownie v1.17.2

nodejs v16.13.4

I am learning solidity according to reference(https://www.youtube.com/watch?v=M576WGiDBdQ&t=25510s).

Node.JS install is fine

when I tried this

JavaScript

the terminal give the error information

JavaScript

I checked the owner of the file ,the owner is root ,should i use sudo?

JavaScript

find this thread (Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’),changed the owner , stll one file don’t change.

JavaScript

what is this 2 dots is?

Advertisement

Answer

I had the same problem but I could solve it after seeing a youtube video use this command:

JavaScript
Advertisement