N
N
naneri2015-06-28 18:21:51
Node.js
naneri, 2015-06-28 18:21:51

Why doesn't npm install files locally?

I run the command

npm install cheerio request

No "-g". But for some reason, nothing appears in the folder from which I ran the command, and it’s not clear where these modules and index.js are at all. Why is that?
Ok, I do
npm init before that, and then everything is cool - it installs locally, but does not generate index.js with dependency imports. What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
scapp, 2015-06-28
@scapp

look in node_modules folder

I
index0h, 2015-06-28
@index0h

npm init, and then everything is cool - it installs locally, but does not generate index.js with dependency imports. What to do?

Why should he suddenly do this?))
Your dependencies in package.json and node_modules/*
If you are installing from root, a global installation option is possible even without the -g switch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question