1

Im trying to downgrade node version with this command: npm install -g n but I have this error: [Error: EACCES: permission denied, unlink '/usr/local/bin/n']

Then, I have to use this command to downgrade: n 6.10.3

How can I fix the permission denied error?

Mario Ramos García
  • 755
  • 3
  • 8
  • 20

1 Answers1

2

Use sudo npm install -g n to run the command as a super user.

jasonandmonte
  • 1,869
  • 2
  • 15
  • 24