49,969 questions
1548
votes
23
answers
1.4m
views
Where does npm install packages?
Can someone tell me where can I find the Node.js modules, which I installed using npm?
20
votes
4
answers
10k
views
set node.js REPL module paths
I can't figure out how to add paths to my Node.js installation (v.0.4.7 on Mac OS X). I've installed npm, and it installs globally to /usr/local/lib/node_modules. However, when I installed npm, it ...
139
votes
5
answers
192k
views
How to install a node.js module without using npm?
There are quite a few modules which are listed on node's github page but are not published with the npm-registry. These modules can't be installed using npm.
What is the correct way to install these ...
9
votes
6
answers
27k
views
What needs to change in this package.json file to work with npm 0.3.0?
Trying to use a lib but getting this error...
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse Note that package.json must be actual JSON, not
npm ERR! JSON.parse just a ...
1
vote
3
answers
477
views
Express package still "require"-able after npm uninstall?
npm uninstall express successfully uninstalls express, and when I ls $NODE_PATH, it isn't there anymore.
However, if I run node and require('express'), I get
{ version: '1.0.0rc2',
Server: { [...
0
votes
1
answer
3k
views
node.js express require?
In an example I see something like this:
var uid = require("../support/express/support/connect/lib/connect/utils").uid
var express = require("express") is OK!
var uid = require("express").uid is ...
61
votes
3
answers
35k
views
How/why does npm recommend not running as root?
In short...
First of all, why does npm suggest that it should only run as non-root? I highly disbelieve that every other package manager (apt, yum, gem, pacman) is wrong for requiring sudo.
Second, ...
3
votes
2
answers
2k
views
Configuring a Node JS App to Use NPM
I have a really simple Node JS app and I'd like to include the Express JS framework. I've installed Express with NPM (and NPM with Homebrew) without any errors using:
brew install npm
npm install ...
1
vote
2
answers
876
views
npm install issues on Ubuntu 9.04
I’m trying to install npm using the commands from here: http://howtonode.org/introduction-to-npm
Specifically, when I run:
curl http://npmjs.org/install.sh | sh
This is the error I get...
node cli....
11
votes
2
answers
7k
views
How do you set up npm (node package manager) without root access?
Setting npm up as the root user is straighforward and workds. Except you have to run npm commands as root (not recommended). So I thought I'd try setting it up as a non-root user.
According to npm ...