npm will not install express?

后端 未结 8 1073
臣服心动
臣服心动 2020-12-23 11:39

I currently have node.js version 0.8.8, and npm 1.1.59 installed.

Whenever I run:

$ npm install -g express

I get this in return:<

8条回答
  •  悲哀的现实
    2020-12-23 12:08

    As a side note, if you other solutions haven't helped, I have had the same issue and realised what was wrong -- which maybe of interest here.

    I had nodemon running on another project -- when I installed locally express. Check you're not running express on another project and trying to install express on a new project. Just a heads up and hope it helps. By the way, just copied the dependency from the package file, and pasted into my new project and ran npm install and checked, express got installed.

提交回复
热议问题