Error: EACCES: permission denied when trying to install ESLint using npm

后端 未结 8 1152
执念已碎
执念已碎 2021-01-29 23:59

I\'m trying to install ESLint with npm by going:

npm install -g eslint

However I get the following error:

Deans-Air:~ deangibso         


        
8条回答
  •  伪装坚强ぢ
    2021-01-30 00:39

    Use sudo before tns and it is work for me

    Example:

    sudo tns create Tekmo --template tns-template-hello-world
    

    if I have used sudo then not found error like to create postinstall.js

    Error: EACCES: permission denied

提交回复
热议问题