Yavor
Yavor

Reputation: 149

Can't install ExpressJS - npm is throwing an error

When I try to install ExpressJS with the command npm install -g express, I get the following errors:

enter image description here

What can I do about it?

Upvotes: 0

Views: 33

Answers (2)

Yavor
Yavor

Reputation: 149

Actually, I fixed the problem by uninstalling the latest version and installing the currently recommended one for most users - version 6.9.1.

The cause of the problem still remains unknown.

Upvotes: 0

Gavin Haynes
Gavin Haynes

Reputation: 1992

I assume node -v gives 0.10.something. Get rid of it and install a newer version of node from nodejs.org. Also try removing node_modules and npm install everything again.

Upvotes: 1

Related Questions