Usman Sabuwala
Usman Sabuwala

Reputation: 900

Can't install packages globally on Windows using npm

When I try to install a package globally using npm, it complaints about not being able to create some files. How can I solve this issue? I am on Windows 10

enter image description here

Upvotes: 1

Views: 1718

Answers (1)

Emmanuel Bayode
Emmanuel Bayode

Reputation: 49

As the error suggests, you might not have the appropriate permissions. Therefore, try to launch the cmd as an administrator, and then run your command.

Upvotes: 3

Related Questions