npm is the official package manager for Node.js, the asynchronous I/O framework that uses Google's V8 JavaScript engine. It can be used to install and publish CommonJS modules.
3
votes
0answers
571 views
cURL failed to initialize
Trying to install npm for node v0.6.2 using
$ curl http://npmjs.org/install.sh
but encountered error from cURL saying,
curl: (2) Failed initialization.
I tried cURL other links also, but same ...
2
votes
0answers
49 views
In Node.js, how can a module get data from an application's package.json?
I have a module. Inside it, I'd like to access data from my parent application's package.json file. What's the best practice way to do that?
I've done this the janky way by going up 2 levels and ...
2
votes
0answers
92 views
Multiple github private npm repositories on a server
I have a node application on github in a private repository. This node application also has custom modules that I made and they are in a separate private repository.
This is the example node ...
2
votes
0answers
79 views
How can I configure npm-gyp on Windows to use gcc instead of VC++?
Is there a way to configure npm-gyp to use gcc (as it appears to on Linux) on a Windows box?
2
votes
0answers
390 views
grunt.js grunt-init issue
I recently moved to grunt-cli and ditched global grunt v0.3.x. I'm trying to install grunt-init globally and ran into an issue where it wasn't being added to the PATH because of the missing bin file ...
2
votes
0answers
125 views
`npm install <folder>` or `npm pack` does not install dependencies
I have an npm package that uses coffeescript source, which I want to precompile before pack or publish. However, my prepublish script depends on coffee-script as a devDependency, but npm isn't ...
2
votes
0answers
85 views
Why is npm not honoring user/global npmingore?
My editor produces workspace files and backup folders which are of no interest to users of the software I write. In order to avoid having to list my editor-specific ignores in each project, I'm ...
2
votes
0answers
245 views
Error when installing Forever for node.js server
I'm trying to install Forever for my node.js server but getting following error when npm install -g forever, I have node v0.8.5 and npm v1.1.46
npm ERR! fetch failed ...
2
votes
0answers
161 views
How can I change the default location for NPM installs on Windows?
When I install modules with NPM on Windows, it installs them to:
~/node_modules
I'd like to set change this to an arbitrary path such as:
c:\dev\repo\node_modules
I've tried
npm config set ...
2
votes
0answers
180 views
Node-xmpp: Cannot read propery 'write' of undefined
I'm having an issue with node-xmpp, server-side settings out of my control maybe have changed but this error is relatively new. Looking for some pointers/insight, I've not been able to solve this ...
1
vote
0answers
34 views
Error: invalid signature: 0x4acf92ad (at position: 0x29)
I was trying to convert excel into json in node. I found a few modules that may be helpful.
I tried npm excel https://npmjs.org/package/excel
My app.js
var express = require('express'); //Call ...
1
vote
0answers
103 views
Trouble installing coffee-script with npm
Here is my console output after running sudo npm install -g coffee-script
Joshuas-MacBook-Pro-2:~ jwalsh$ sudo npm install -g coffee-script
npm http GET https://registry.npmjs.org/coffee-script
npm ...
1
vote
0answers
9 views
Setup NPM prepublish minify script
I want to setup a script that will minify my Javascript code before I publish it using NPM.
As far as I understand, this should be possible using this in package.json:
"scripts": {
"prepublish": ...
1
vote
0answers
36 views
npm command - sudo or not?
Currently I always run sudo npm install <package-name> but as I understand it's not correct.
I want to have opportunity not to use it as root/Administrator.
I followed some advice and used this ...
1
vote
0answers
99 views
Unable to install LDAP modules into Node.js using npm install
I am using Node.js for my application, and I'm quite new to it.
I have a case of acquiring credentials of users from an LDAP server, for which I have found enough modules in NPM registry. But none of ...