You are not logged in.

#1 2014-03-28 23:51:24

mongus
Member
Registered: 2014-03-28
Posts: 3

Problem with npm installing global packages

If I try to install a global package with npm like :

sudo npm install -g grunt

npm will install the package in "/usr/lib/node_modules/". But it is not installing the executable anywhere.

The result of npm -g bin is

/usr/bin

So that is where I would expect the executable to be placed. But nothing is there. So if I run grunt, it just complains that grunt can't be found.


Any ideas? Thanks


====================

EDIT: OK everyone, please ignore me, I'm just being thick.

You don't install grunt globally. Grunt is the local package to install. To get the global grunt command, you install grunt-cli. Doing things correctly and everything works fine.

Last edited by mongus (2014-03-29 21:10:47)

Offline

#2 2015-03-30 16:29:49

bendavis78
Member
Registered: 2014-06-21
Posts: 41

Re: Problem with npm installing global packages

I'm having this same problem. FInd any solutions?

Offline

#3 2015-03-30 16:36:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Problem with npm installing global packages

This thread is a year and two days old.  The OP indicated what they had found and presumably are no longer following this thread.
I have no idea what npm is about, but if the OP's comments don't help, pleas go ahead and open a new thread that you will own.   Maybe provide a bit more information.   In the mean time I am going to close this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB