Reputation: 149
When I try to install ExpressJS with the command npm install -g express, I get the following errors:
What can I do about it?
Upvotes: 0
Views: 33
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
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