0
votes

I'm having a problem with my new installation of Node.js (windows 64 bit). I'm trying to install the express module inside a project of mine but I can't work it out.

I type this command :

npm install -g express

However this is the result of the command

├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected])

It's the list of dependecies needed by express but there's no download of them.

The first time I tried to use npm I had this problem (https://github.com/npm/npm/issues/4808)

There were many solutions to solve it, one of them consist in disable the layer ssl for the connection to the npm online registry but I don't think there's a connection between this solution (that I applied) and the problem.

Thank you in advance,

Luca

1
It looks like they were downloaded just fine. What makes you think they weren't? And, why are you installing Express globally? - Brad
The directory express doesn't appear in the node_modules directory of my project. I would like to install it globally in order to use it in other projects. - Luca Marzi
It won't appear in the node_modules directory of your project... you installed it globally. Don't install it globally. Keep a separate copy for each project. This is important since you'll want to have separate versions at some point later on. - Brad
Yes, I'm sorry... I have misunderstood a concept of a guide I'm following about Node.js However it works... - Luca Marzi

1 Answers

0
votes

The express module should be installed on a per project basis.

npm install --save express