F
F
frontendzzz2018-05-12 20:57:35
JavaScript
frontendzzz, 2018-05-12 20:57:35

Why is npm not installed on a new project?

Greetings. Why are npm not installed? I type npm init and get the following message:
5af72a6bd64f6668248260.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2018-05-12
@RidgeA

you can because you need to read how the command works
npm init

A
Andrey Okhotnikov, 2018-05-15
@tsepen

The npm init command initializes a new project and creates a package.json file. If you need to install all modules from this file, then you need to type npm install, if you need to install some other module that is not in package.json, then you need to run npm i --save MODULE_NAME .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question