简体   繁体   中英

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:

在此处输入图片说明

What can I do about it?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM