K
K
Kypaku2014-08-24 12:46:13
Node.js
Kypaku, 2014-08-24 12:46:13

Node.js can't install modules. Why?

I want to install the module https://github.com/cheeriojs/cheerio
I downloaded the archive from Git.
Unpacked. Opened a command window in the folder.
npm install cheerio
Answer

npm WARN install Refusing to install cheerio as a dependency of itself

Same when trying to install another module.
Even before that, npm didn't quite work, gave ENOENT error. Stopped issuing it after manually creating the App Data/Roaming/npm folder

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Shemsedinov, 2014-08-24
@Kypaku

Everything correctly throws an error, you are trying to install cheerio as a dependency in itself. You do not need to merge the archive with git, just put it in an empty folder via npm install cheerio. Git is not needed for this at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question