[MacPorts] #33175: NPM doesn't install packages in the appropriate location
MacPorts
noreply at macports.org
Tue Feb 7 13:56:27 PST 2012
#33175: NPM doesn't install packages in the appropriate location
--------------------------------+-------------------------------------------
Reporter: conradwt@… | Owner: ciserlohn@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: npm
--------------------------------+-------------------------------------------
Comment(by conradwt@…):
OK, I'm seeing the following when I query the value of the global value:
{{{
$ npm get global
true
}}}
Now, the issue was the following which I didn't manually create and/or
edit myself:
$ npm config list
; cli configs
; userconfig /Users/conradwt/.npmrc
global = true
; globalconfig /opt/local/etc/npmrc
; node install prefix = undefined
; node bin location = /opt/local/bin/node
; cwd = /Users/conradwt/pubnub
; HOME = /Users/conradwt
; 'npm config ls -l' to show all defaults.
}}}
Next, I'm seeing the following:
{{{
$ npm list -g
/opt/local/lib
├── coffee-script at 1.2.0
├─┬ js2coffee at 0.1.3
│ ├── coffee-script at 1.2.0
│ └── underscore at 1.3.0
└─┬ npm at 1.1.0-2
├── abbrev at 1.0.3
├── block-stream at 0.0.4
├── fast-list at 1.0.2
├── fstream at 0.1.11
├── graceful-fs at 1.1.2
├── inherits at 1.0.0
├── ini at 1.0.2
├── lru-cache at 1.0.5
├── minimatch at 0.1.3
├── mkdirp at 0.1.0
├── node-uuid at 1.3.3
├── nopt at 1.0.10
├── proto-list at 1.0.0
├── read at 0.0.1
├── request at 2.9.3
├── rimraf at 1.0.9
├── semver at 1.0.13
├── slide at 1.1.3
├── tar at 0.1.12
└── which at 1.0.2
}}}
Finally, when I'm in the home directory, I get the following result and
things are back to normal:
{{{
$ npm list
/Users/conradwt
(empty)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/33175#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list