ellen zhu
ellen zhu

Reputation: 67

Can't install express ubuntu

I have tried any ways I can but still can't install express successfully. I used

sudo npm install -g express-generator
sudo npm install -g express

The terminal shows

 /usr/bin/express -> /usr/lib/node_modules/express-generator/bin/express
 [email protected] /usr/lib/node_modules/express-generator
 ├── [email protected]
 ├── [email protected] ([email protected])
 └── [email protected] ([email protected])

But when I input express, it still says "command not find". I also added the path"/usr/lib/node_modules/express-generator/bin" in system path, it still failed.

I stuck this problem for two days, it's quite annoying. Please help me.

Upvotes: 0

Views: 625

Answers (1)

danielfeelfine
danielfeelfine

Reputation: 1864

Try $ sudo npm cache clean and then install express and express-generator without sudo.

Upvotes: 2

Related Questions