H
H
Hiroshima2020-08-22 07:27:30
npm
Hiroshima, 2020-08-22 07:27:30

Why is express not installed?

Good afternoon, I can't install expres.

I should get like this:
5f409e08a981c886394008.png

Next will be a description of my actions and the problem itself.

1) I go to the console and go to my folder. 5f40996a6b6fb662934354.png
2) I write the command npm install
5f409a544892d740308174.png
Here I translated using Yandex translator, and it says "there is no such file or directory ..."
The following appeared in the folders:
5f409b9be9e79972341726.png
3) Then I tried to write npm install express-generator -g
5f409c45ee077005737388.png
4) After that I I decided to prescribe the same thing but not globally npm install express-generator
5f409cdd59b5e919060632.png
Here I already have node_modules in the folder and pakage-lock.json has changed.
5f409d884bfea722680034.png

On the Internet, I didn’t find anything about this, that’s why I’m writing here on the forms.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2020-08-22
@Hiroshima

https://docs.npmjs.com/cli-documentation/
In addition, they make it clear to you in quite normal English that you are missing a package.json file
PS Start with these sections:
https://docs.npmjs.com/cli- commands/init.html
https://docs.npmjs.com/cli-commands/install.html
Packages themselves usually have readme too:
https://www.npmjs.com/package/express-generator#qu.. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question