T
T
Taras2017-06-12 13:08:10
css
Taras, 2017-06-12 13:08:10

Can't type anything in terminal after 'npm init' command. What's the problem?

Hello. I'm just learning to try to describe the problem in detail. I installed gulp with the command "npm i gulp -g". Then, as described in the tutorial, you need to go to the desired folder and open the terminal there and install the required package with the command "npm init" I entered it asks for a name, I enter the desired name and everything is left on the version type on the version I can not enter anything in the terminal, just close it and try again. I don't know what to do anymore, reinstalling gulp didn't help either.
Previously, there was no such problem, everything was installed normally. There was a problem with the fact that it was necessary to update some modules. Therefore, I also reinstalled gulp and node.js.
ef909f7f5a284780bfa2da71557d2ac3.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kepo, 2017-06-12
@Vorteri

Enter not npm initbut npm init -y
On the versions, did you just try to press Enter? Did you enter numbers or letters?

A
amf1k, 2017-06-12
@amf1k

well, you need to answer the questions and that's it .... Press Enter if you don't want to bother, otherwise read npm init and so on.

A
Alexander, 2017-06-12
@boratsagdiev

Packages are installed via npm install <package-name>or npm i <package-name>.
A npm initsimple help to create package.jsoninteractively with answers to questions. You can add a flag , -Yor --yesin this case a default one will be created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question