S
S
Stanislav_Bykov2017-07-11 16:41:18
Node.js
Stanislav_Bykov, 2017-07-11 16:41:18

Packages from package.json are not installed, what is the reason?

Please tell me what is the cause of the problem - I want to create a new project in gulp.
I copy the file gulpfile.js and package.json to the folder, I type npm i on the command line, an empty node_modules folder is created, on the command line it says that there is no description and repository, and the packages are not installed.
Node.js reinstalled several times, tried different versions from 4.x.x to 6.x.x
PS Previously asked this question, but the solution was to switch to another OS. Now there is no such possibility and it is necessary to work only on Windows.5372c39b23444347af6ec888ac4677e4.jpg21e6ae2e001743b9b65a606a1082daa2.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly, 2017-07-11
@Stanislav_Bykov

I Googled it for you, read it, I think it's all about the case
npm install (in package directory, no arguments):
Install the dependencies in the local node_modules folder.
In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package.
By default, npm install will install all modules listed as dependencies. With the --production flag, npm will not install modules listed in devDependencies.

R
Ramil, 2017-07-11
@rshaibakov

Installation warnings do not affect the installation. Try to take any other package.json from the network as an example and check if it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question