“Please try running this command again as Root/Administrator” error when trying to install LESS

后端 未结 11 2018
栀梦
栀梦 2020-12-02 14:09

I\'m trying to install LESS on my machine and have installed node already. However, when I enter \"node install -g less\" I get the following error and am not sure what to d

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 14:44

    npm has an official page about fixing npm permissions when you get the EACCES (Error: Access) error. The page even has a video.

    You can fix this problem using one of two options:

    1. Change the permission to npm's default directory.
    2. Change npm's default directory to another directory.

提交回复
热议问题