Error: EACCES: permission denied, mkdir

Today, the global installed when flying ice, there's an error title

Thought is not enough permissions problem, in fact, flying ice official website also has a solution, it is to change the default path of npm. Before I use a method to change the default path, and then later returned to the default path, or use the default path plus rights approach:

sudo npm install iceworks -g --unsafe-perm=true --allow-root

After the online instructions direct pink plus instructions above, but I tried not, all before added a sudo command

So to sum up the solution of various problems encountered by the current authority under MacOS:

1. Add instruction before sudo

2. After adding means before --unsafe-perm = true --allow-root

3. The combination of the first and second points, sudo (instruction)  the --unsafe-Perm = the root-to true the --allow

Guess you like

Origin www.cnblogs.com/linck/p/11574704.html