Opened 13 years ago

Closed 13 years ago

#32456 closed defect (fixed)

npm executable not found after installing nodejs port

Reported by: conradwt (Conrad Taylor) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc: ci42, ryandesign (Ryan Carsten Schmidt)
Port: nodejs, npm

Description

After installing nodejs, I noticed that the associated package manager, npm, is not being properly installed as indicated on the npmjs.org project's website. Furthermore, after reading the issues on githib.com/joyent/nodejs, it appears that the issue is possible with an unstable version of npm which comes with nodejs.

Attachments (2)

npm-main.log (68.1 KB) - added by conradwt (Conrad Taylor) 13 years ago.
npm-main.log
npm.destroot.diff (1.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
patch for testing

Download all attachments as: .zip

Change History (16)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Port: npm added
Resolution: invalid
Status: newclosed

npm is a separate port. Install that if you want npm.

comment:2 Changed 13 years ago by conradwt (Conrad Taylor)

Resolution: invalid
Status: closedreopened

OK, I just installed it as a separate port and I'm getting the following message now:

 $ npm
-bash: npm: command not found

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

What does "port contents npm" say?

comment:4 Changed 13 years ago by conradwt (Conrad Taylor)

$ port contents npm
Port npm contains:
  /opt/local/bin/npm
  /opt/local/bin/npm-g
  /opt/local/bin/npm_g
  /opt/local/share/man/man1/npm-README.1.gz
  /opt/local/share/man/man1/npm-adduser.1.gz
  /opt/local/share/man/man1/npm-author.1.gz
  /opt/local/share/man/man1/npm-bin.1.gz
  /opt/local/share/man/man1/npm-bugs.1.gz
  /opt/local/share/man/man1/npm-build.1.gz
  /opt/local/share/man/man1/npm-bundle.1.gz
  /opt/local/share/man/man1/npm-cache.1.gz
  /opt/local/share/man/man1/npm-changelog.1.gz
  /opt/local/share/man/man1/npm-coding-style.1.gz
  /opt/local/share/man/man1/npm-completion.1.gz
  /opt/local/share/man/man1/npm-config.1.gz
  /opt/local/share/man/man1/npm-deprecate.1.gz
  /opt/local/share/man/man1/npm-developers.1.gz
  /opt/local/share/man/man1/npm-docs.1.gz
  /opt/local/share/man/man1/npm-edit.1.gz
  /opt/local/share/man/man1/npm-explore.1.gz
  /opt/local/share/man/man1/npm-faq.1.gz
  /opt/local/share/man/man1/npm-find.1.gz
  /opt/local/share/man/man1/npm-folders.1.gz
  /opt/local/share/man/man1/npm-get.1.gz
  /opt/local/share/man/man1/npm-global.1.gz
  /opt/local/share/man/man1/npm-help-search.1.gz
  /opt/local/share/man/man1/npm-help.1.gz
  /opt/local/share/man/man1/npm-home.1.gz
  /opt/local/share/man/man1/npm-index.1.gz
  /opt/local/share/man/man1/npm-init.1.gz
  /opt/local/share/man/man1/npm-install.1.gz
  /opt/local/share/man/man1/npm-json.1.gz
  /opt/local/share/man/man1/npm-link.1.gz
  /opt/local/share/man/man1/npm-list.1.gz
  /opt/local/share/man/man1/npm-ln.1.gz
  /opt/local/share/man/man1/npm-ls.1.gz
  /opt/local/share/man/man1/npm-outdated.1.gz
  /opt/local/share/man/man1/npm-owner.1.gz
  /opt/local/share/man/man1/npm-pack.1.gz
  /opt/local/share/man/man1/npm-prefix.1.gz
  /opt/local/share/man/man1/npm-prune.1.gz
  /opt/local/share/man/man1/npm-publish.1.gz
  /opt/local/share/man/man1/npm-rebuild.1.gz
  /opt/local/share/man/man1/npm-registry.1.gz
  /opt/local/share/man/man1/npm-removing-npm.1.gz
  /opt/local/share/man/man1/npm-restart.1.gz
  /opt/local/share/man/man1/npm-rm.1.gz
  /opt/local/share/man/man1/npm-root.1.gz
  /opt/local/share/man/man1/npm-run-script.1.gz
  /opt/local/share/man/man1/npm-scripts.1.gz
  /opt/local/share/man/man1/npm-search.1.gz
  /opt/local/share/man/man1/npm-semver.1.gz
  /opt/local/share/man/man1/npm-set.1.gz
  /opt/local/share/man/man1/npm-star.1.gz
  /opt/local/share/man/man1/npm-start.1.gz
  /opt/local/share/man/man1/npm-stop.1.gz
  /opt/local/share/man/man1/npm-submodule.1.gz
  /opt/local/share/man/man1/npm-tag.1.gz
  /opt/local/share/man/man1/npm-test.1.gz
  /opt/local/share/man/man1/npm-uninstall.1.gz
  /opt/local/share/man/man1/npm-unpublish.1.gz
  /opt/local/share/man/man1/npm-update.1.gz
  /opt/local/share/man/man1/npm-version.1.gz
  /opt/local/share/man/man1/npm-view.1.gz
  /opt/local/share/man/man1/npm-whoami.1.gz
  /opt/local/share/man/man1/npm.1.gz
  /opt/local/share/man/man3/npm-author.3.gz
  /opt/local/share/man/man3/npm-bin.3.gz
  /opt/local/share/man/man3/npm-bugs.3.gz
  /opt/local/share/man/man3/npm-commands.3.gz
  /opt/local/share/man/man3/npm-config.3.gz
  /opt/local/share/man/man3/npm-deprecate.3.gz
  /opt/local/share/man/man3/npm-docs.3.gz
  /opt/local/share/man/man3/npm-edit.3.gz
  /opt/local/share/man/man3/npm-explore.3.gz
  /opt/local/share/man/man3/npm-find.3.gz
  /opt/local/share/man/man3/npm-get.3.gz
  /opt/local/share/man/man3/npm-help-search.3.gz
  /opt/local/share/man/man3/npm-home.3.gz
  /opt/local/share/man/man3/npm-init.3.gz
  /opt/local/share/man/man3/npm-install.3.gz
  /opt/local/share/man/man3/npm-link.3.gz
  /opt/local/share/man/man3/npm-list.3.gz
  /opt/local/share/man/man3/npm-ln.3.gz
  /opt/local/share/man/man3/npm-load.3.gz
  /opt/local/share/man/man3/npm-ls.3.gz
  /opt/local/share/man/man3/npm-outdated.3.gz
  /opt/local/share/man/man3/npm-owner.3.gz
  /opt/local/share/man/man3/npm-pack.3.gz
  /opt/local/share/man/man3/npm-prefix.3.gz
  /opt/local/share/man/man3/npm-prune.3.gz
  /opt/local/share/man/man3/npm-publish.3.gz
  /opt/local/share/man/man3/npm-rebuild.3.gz
  /opt/local/share/man/man3/npm-restart.3.gz
  /opt/local/share/man/man3/npm-rm.3.gz
  /opt/local/share/man/man3/npm-root.3.gz
  /opt/local/share/man/man3/npm-run-script.3.gz
  /opt/local/share/man/man3/npm-search.3.gz
  /opt/local/share/man/man3/npm-set.3.gz
  /opt/local/share/man/man3/npm-start.3.gz
  /opt/local/share/man/man3/npm-stop.3.gz
  /opt/local/share/man/man3/npm-submodule.3.gz
  /opt/local/share/man/man3/npm-tag.3.gz
  /opt/local/share/man/man3/npm-test.3.gz
  /opt/local/share/man/man3/npm-uninstall.3.gz
  /opt/local/share/man/man3/npm-unpublish.3.gz
  /opt/local/share/man/man3/npm-update.3.gz
  /opt/local/share/man/man3/npm-version.3.gz
  /opt/local/share/man/man3/npm-view.3.gz
  /opt/local/share/man/man3/npm-whoami.3.gz
  /opt/local/share/man/man3/npm.3.gz

comment:5 Changed 13 years ago by conradwt (Conrad Taylor)

npm is in my path. However, the executable is pointing to something that does not exist because the /opt/local/lib/node_modules/.bin directory does not exist.

$ ls -al /opt/local/bin/npm
lrwxr-xr-x  1 root  admin  36 Dec  7 21:47 /opt/local/bin/npm -> /opt/local/lib/node_modules/.bin/npm

comment:6 in reply to:  4 Changed 13 years ago by ci42

Owner: changed from macports-tickets@… to ciserlohn@…
Status: reopenednew

Replying to conradwt@…:

Strange. It seems that only the links to the executables and the man pages got installed, but not npm itself. Have you tried to install node or npm using the installers from their websites? If you did, please uninstall them first, they could interfere with the ones from macports. Then make a clean install:

sudo port uninstall npm
sudo port uninstall nodejs
sudo port clean --all npm
sudo port clean --all nodejs
sudo port install npm

If npm still won't work, please attach the output of above commands and "port contents npm". Last one should look like:

  /opt/local/bin/npm
  /opt/local/bin/npm-g
  /opt/local/bin/npm_g
  /opt/local/lib/node_modules/.bin/npm
  /opt/local/lib/node_modules/.bin/npm-g
  /opt/local/lib/node_modules/.bin/npm_g
  /opt/local/lib/node_modules/npm/.gitignore
  /opt/local/lib/node_modules/npm/.gitmodules
  /opt/local/lib/node_modules/npm/.npmignore
  /opt/local/lib/node_modules/npm/AUTHORS
  /opt/local/lib/node_modules/npm/CHANGES
  /opt/local/lib/node_modules/npm/LICENSE
  /opt/local/lib/node_modules/npm/Makefile
  /opt/local/lib/node_modules/npm/README.md
  /opt/local/lib/node_modules/npm/bin/npm-cli.js
  /opt/local/lib/node_modules/npm/bin/npm-get-uid-gid.js
  /opt/local/lib/node_modules/npm/bin/read-package-json.js
  /opt/local/lib/node_modules/npm/cli.js
  /opt/local/lib/node_modules/npm/configure
  /opt/local/lib/node_modules/npm/deps/basic-bsdtar-2.8.3-1-mingw32-bin/basic-bsdtar.1.txt
  /opt/local/lib/node_modules/npm/deps/basic-bsdtar-2.8.3-1-mingw32-bin/basic-bsdtar.LICENSE
  /opt/local/lib/node_modules/npm/deps/basic-bsdtar-2.8.3-1-mingw32-bin/basic-bsdtar.README
  /opt/local/lib/node_modules/npm/deps/basic-bsdtar-2.8.3-1-mingw32-bin/basic-bsdtar.exe
  /opt/local/lib/node_modules/npm/doc/api/author.md
  /opt/local/lib/node_modules/npm/doc/api/bin.md
  /opt/local/lib/node_modules/npm/doc/api/bugs.md
  /opt/local/lib/node_modules/npm/doc/api/commands.md
  /opt/local/lib/node_modules/npm/doc/api/config.md
  /opt/local/lib/node_modules/npm/doc/api/deprecate.md
  /opt/local/lib/node_modules/npm/doc/api/docs.md
  /opt/local/lib/node_modules/npm/doc/api/edit.md
  /opt/local/lib/node_modules/npm/doc/api/explore.md
  /opt/local/lib/node_modules/npm/doc/api/find.md
  /opt/local/lib/node_modules/npm/doc/api/get.md
  /opt/local/lib/node_modules/npm/doc/api/help-search.md
  /opt/local/lib/node_modules/npm/doc/api/home.md
  /opt/local/lib/node_modules/npm/doc/api/init.md
  /opt/local/lib/node_modules/npm/doc/api/install.md
  /opt/local/lib/node_modules/npm/doc/api/link.md
  /opt/local/lib/node_modules/npm/doc/api/list.md
  /opt/local/lib/node_modules/npm/doc/api/ln.md
  /opt/local/lib/node_modules/npm/doc/api/load.md
  /opt/local/lib/node_modules/npm/doc/api/ls.md
  /opt/local/lib/node_modules/npm/doc/api/npm.md
  /opt/local/lib/node_modules/npm/doc/api/outdated.md
  /opt/local/lib/node_modules/npm/doc/api/owner.md
  /opt/local/lib/node_modules/npm/doc/api/pack.md
  /opt/local/lib/node_modules/npm/doc/api/prefix.md
  /opt/local/lib/node_modules/npm/doc/api/prune.md
  /opt/local/lib/node_modules/npm/doc/api/publish.md
  /opt/local/lib/node_modules/npm/doc/api/rebuild.md
  /opt/local/lib/node_modules/npm/doc/api/restart.md
  /opt/local/lib/node_modules/npm/doc/api/rm.md
  /opt/local/lib/node_modules/npm/doc/api/root.md
  /opt/local/lib/node_modules/npm/doc/api/run-script.md
  /opt/local/lib/node_modules/npm/doc/api/search.md
  /opt/local/lib/node_modules/npm/doc/api/set.md
  /opt/local/lib/node_modules/npm/doc/api/start.md
  /opt/local/lib/node_modules/npm/doc/api/stop.md
  /opt/local/lib/node_modules/npm/doc/api/submodule.md
  /opt/local/lib/node_modules/npm/doc/api/tag.md
  /opt/local/lib/node_modules/npm/doc/api/test.md
  /opt/local/lib/node_modules/npm/doc/api/uninstall.md
  /opt/local/lib/node_modules/npm/doc/api/unpublish.md
  /opt/local/lib/node_modules/npm/doc/api/update.md
  /opt/local/lib/node_modules/npm/doc/api/version.md
  /opt/local/lib/node_modules/npm/doc/api/view.md
  /opt/local/lib/node_modules/npm/doc/api/whoami.md
  /opt/local/lib/node_modules/npm/doc/cli/adduser.md
  /opt/local/lib/node_modules/npm/doc/cli/author.md
  /opt/local/lib/node_modules/npm/doc/cli/bin.md
  /opt/local/lib/node_modules/npm/doc/cli/bugs.md
  /opt/local/lib/node_modules/npm/doc/cli/build.md
  /opt/local/lib/node_modules/npm/doc/cli/bundle.md
  /opt/local/lib/node_modules/npm/doc/cli/cache.md
  /opt/local/lib/node_modules/npm/doc/cli/changelog.md
  /opt/local/lib/node_modules/npm/doc/cli/coding-style.md
  /opt/local/lib/node_modules/npm/doc/cli/completion.md
  /opt/local/lib/node_modules/npm/doc/cli/config.md
  /opt/local/lib/node_modules/npm/doc/cli/deprecate.md
  /opt/local/lib/node_modules/npm/doc/cli/developers.md
  /opt/local/lib/node_modules/npm/doc/cli/docs.md
  /opt/local/lib/node_modules/npm/doc/cli/edit.md
  /opt/local/lib/node_modules/npm/doc/cli/explore.md
  /opt/local/lib/node_modules/npm/doc/cli/faq.md
  /opt/local/lib/node_modules/npm/doc/cli/find.md
  /opt/local/lib/node_modules/npm/doc/cli/folders.md
  /opt/local/lib/node_modules/npm/doc/cli/get.md
  /opt/local/lib/node_modules/npm/doc/cli/global.md
  /opt/local/lib/node_modules/npm/doc/cli/help-search.md
  /opt/local/lib/node_modules/npm/doc/cli/help.md
  /opt/local/lib/node_modules/npm/doc/cli/home.md
  /opt/local/lib/node_modules/npm/doc/cli/index.md
  /opt/local/lib/node_modules/npm/doc/cli/init.md
  /opt/local/lib/node_modules/npm/doc/cli/install.md
  /opt/local/lib/node_modules/npm/doc/cli/json.md
  /opt/local/lib/node_modules/npm/doc/cli/link.md
  /opt/local/lib/node_modules/npm/doc/cli/list.md
  /opt/local/lib/node_modules/npm/doc/cli/ln.md
  /opt/local/lib/node_modules/npm/doc/cli/ls.md
  /opt/local/lib/node_modules/npm/doc/cli/npm.md
  /opt/local/lib/node_modules/npm/doc/cli/outdated.md
  /opt/local/lib/node_modules/npm/doc/cli/owner.md
  /opt/local/lib/node_modules/npm/doc/cli/pack.md
  /opt/local/lib/node_modules/npm/doc/cli/prefix.md
  /opt/local/lib/node_modules/npm/doc/cli/prune.md
  /opt/local/lib/node_modules/npm/doc/cli/publish.md
  /opt/local/lib/node_modules/npm/doc/cli/rebuild.md
  /opt/local/lib/node_modules/npm/doc/cli/registry.md
  /opt/local/lib/node_modules/npm/doc/cli/removing-npm.md
  /opt/local/lib/node_modules/npm/doc/cli/restart.md
  /opt/local/lib/node_modules/npm/doc/cli/rm.md
  /opt/local/lib/node_modules/npm/doc/cli/root.md
  /opt/local/lib/node_modules/npm/doc/cli/run-script.md
  /opt/local/lib/node_modules/npm/doc/cli/scripts.md
  /opt/local/lib/node_modules/npm/doc/cli/search.md
  /opt/local/lib/node_modules/npm/doc/cli/semver.md
  /opt/local/lib/node_modules/npm/doc/cli/set.md
  /opt/local/lib/node_modules/npm/doc/cli/star.md
  /opt/local/lib/node_modules/npm/doc/cli/start.md
  /opt/local/lib/node_modules/npm/doc/cli/stop.md
  /opt/local/lib/node_modules/npm/doc/cli/submodule.md
  /opt/local/lib/node_modules/npm/doc/cli/tag.md
  /opt/local/lib/node_modules/npm/doc/cli/test.md
  /opt/local/lib/node_modules/npm/doc/cli/uninstall.md
  /opt/local/lib/node_modules/npm/doc/cli/unpublish.md
  /opt/local/lib/node_modules/npm/doc/cli/update.md
  /opt/local/lib/node_modules/npm/doc/cli/version.md
  /opt/local/lib/node_modules/npm/doc/cli/view.md
  /opt/local/lib/node_modules/npm/doc/cli/whoami.md
  /opt/local/lib/node_modules/npm/html/api/GubbleBum-Blocky.ttf
  /opt/local/lib/node_modules/npm/html/api/author.html
  /opt/local/lib/node_modules/npm/html/api/bin.html
  /opt/local/lib/node_modules/npm/html/api/bugs.html
  /opt/local/lib/node_modules/npm/html/api/commands.html
  /opt/local/lib/node_modules/npm/html/api/config.html
  /opt/local/lib/node_modules/npm/html/api/deprecate.html
  /opt/local/lib/node_modules/npm/html/api/docs.html
  /opt/local/lib/node_modules/npm/html/api/edit.html
  /opt/local/lib/node_modules/npm/html/api/explore.html
  /opt/local/lib/node_modules/npm/html/api/find.html
  /opt/local/lib/node_modules/npm/html/api/get.html
  /opt/local/lib/node_modules/npm/html/api/help-search.html
  /opt/local/lib/node_modules/npm/html/api/home.html
  /opt/local/lib/node_modules/npm/html/api/init.html
  /opt/local/lib/node_modules/npm/html/api/install.html
  /opt/local/lib/node_modules/npm/html/api/link.html
  /opt/local/lib/node_modules/npm/html/api/list.html
  /opt/local/lib/node_modules/npm/html/api/ln.html
  /opt/local/lib/node_modules/npm/html/api/load.html
  /opt/local/lib/node_modules/npm/html/api/ls.html
  /opt/local/lib/node_modules/npm/html/api/npm.html
  /opt/local/lib/node_modules/npm/html/api/outdated.html
  /opt/local/lib/node_modules/npm/html/api/owner.html
  /opt/local/lib/node_modules/npm/html/api/pack.html
  /opt/local/lib/node_modules/npm/html/api/prefix.html
  /opt/local/lib/node_modules/npm/html/api/prune.html
  /opt/local/lib/node_modules/npm/html/api/publish.html
  /opt/local/lib/node_modules/npm/html/api/rebuild.html
  /opt/local/lib/node_modules/npm/html/api/restart.html
  /opt/local/lib/node_modules/npm/html/api/rm.html
  /opt/local/lib/node_modules/npm/html/api/root.html
  /opt/local/lib/node_modules/npm/html/api/run-script.html
  /opt/local/lib/node_modules/npm/html/api/search.html
  /opt/local/lib/node_modules/npm/html/api/set.html
  /opt/local/lib/node_modules/npm/html/api/start.html
  /opt/local/lib/node_modules/npm/html/api/stop.html
  /opt/local/lib/node_modules/npm/html/api/style.css
  /opt/local/lib/node_modules/npm/html/api/submodule.html
  /opt/local/lib/node_modules/npm/html/api/tag.html
  /opt/local/lib/node_modules/npm/html/api/test.html
  /opt/local/lib/node_modules/npm/html/api/uninstall.html
  /opt/local/lib/node_modules/npm/html/api/unpublish.html
  /opt/local/lib/node_modules/npm/html/api/update.html
  /opt/local/lib/node_modules/npm/html/api/version.html
  /opt/local/lib/node_modules/npm/html/api/view.html
  /opt/local/lib/node_modules/npm/html/api/whoami.html
  /opt/local/lib/node_modules/npm/html/doc/GubbleBum-Blocky.ttf
  /opt/local/lib/node_modules/npm/html/doc/README.html
  /opt/local/lib/node_modules/npm/html/doc/adduser.html
  /opt/local/lib/node_modules/npm/html/doc/author.html
  /opt/local/lib/node_modules/npm/html/doc/bin.html
  /opt/local/lib/node_modules/npm/html/doc/bugs.html
  /opt/local/lib/node_modules/npm/html/doc/build.html
  /opt/local/lib/node_modules/npm/html/doc/bundle.html
  /opt/local/lib/node_modules/npm/html/doc/cache.html
  /opt/local/lib/node_modules/npm/html/doc/changelog.html
  /opt/local/lib/node_modules/npm/html/doc/coding-style.html
  /opt/local/lib/node_modules/npm/html/doc/completion.html
  /opt/local/lib/node_modules/npm/html/doc/config.html
  /opt/local/lib/node_modules/npm/html/doc/deprecate.html
  /opt/local/lib/node_modules/npm/html/doc/developers.html
  /opt/local/lib/node_modules/npm/html/doc/docs.html
  /opt/local/lib/node_modules/npm/html/doc/edit.html
  /opt/local/lib/node_modules/npm/html/doc/explore.html
  /opt/local/lib/node_modules/npm/html/doc/faq.html
  /opt/local/lib/node_modules/npm/html/doc/find.html
  /opt/local/lib/node_modules/npm/html/doc/folders.html
  /opt/local/lib/node_modules/npm/html/doc/get.html
  /opt/local/lib/node_modules/npm/html/doc/global.html
  /opt/local/lib/node_modules/npm/html/doc/help-search.html
  /opt/local/lib/node_modules/npm/html/doc/help.html
  /opt/local/lib/node_modules/npm/html/doc/home.html
  /opt/local/lib/node_modules/npm/html/doc/index.html
  /opt/local/lib/node_modules/npm/html/doc/init.html
  /opt/local/lib/node_modules/npm/html/doc/install.html
  /opt/local/lib/node_modules/npm/html/doc/json.html
  /opt/local/lib/node_modules/npm/html/doc/link.html
  /opt/local/lib/node_modules/npm/html/doc/list.html
  /opt/local/lib/node_modules/npm/html/doc/ln.html
  /opt/local/lib/node_modules/npm/html/doc/ls.html
  /opt/local/lib/node_modules/npm/html/doc/npm.html
  /opt/local/lib/node_modules/npm/html/doc/outdated.html
  /opt/local/lib/node_modules/npm/html/doc/owner.html
  /opt/local/lib/node_modules/npm/html/doc/pack.html
  /opt/local/lib/node_modules/npm/html/doc/prefix.html
  /opt/local/lib/node_modules/npm/html/doc/prune.html
  /opt/local/lib/node_modules/npm/html/doc/publish.html
  /opt/local/lib/node_modules/npm/html/doc/rebuild.html
  /opt/local/lib/node_modules/npm/html/doc/registry.html
  /opt/local/lib/node_modules/npm/html/doc/removing-npm.html
  /opt/local/lib/node_modules/npm/html/doc/restart.html
  /opt/local/lib/node_modules/npm/html/doc/rm.html
  /opt/local/lib/node_modules/npm/html/doc/root.html
  /opt/local/lib/node_modules/npm/html/doc/run-script.html
  /opt/local/lib/node_modules/npm/html/doc/scripts.html
  /opt/local/lib/node_modules/npm/html/doc/search.html
  /opt/local/lib/node_modules/npm/html/doc/semver.html
  /opt/local/lib/node_modules/npm/html/doc/set.html
  /opt/local/lib/node_modules/npm/html/doc/star.html
  /opt/local/lib/node_modules/npm/html/doc/start.html
  /opt/local/lib/node_modules/npm/html/doc/stop.html
  /opt/local/lib/node_modules/npm/html/doc/style.css
  /opt/local/lib/node_modules/npm/html/doc/submodule.html
  /opt/local/lib/node_modules/npm/html/doc/tag.html
  /opt/local/lib/node_modules/npm/html/doc/test.html
  /opt/local/lib/node_modules/npm/html/doc/uninstall.html
  /opt/local/lib/node_modules/npm/html/doc/unpublish.html
  /opt/local/lib/node_modules/npm/html/doc/update.html
  /opt/local/lib/node_modules/npm/html/doc/version.html
  /opt/local/lib/node_modules/npm/html/doc/view.html
  /opt/local/lib/node_modules/npm/html/doc/whoami.html
  /opt/local/lib/node_modules/npm/html/docfoot.html
  /opt/local/lib/node_modules/npm/html/dochead.html
  /opt/local/lib/node_modules/npm/html/favicon.ico
  /opt/local/lib/node_modules/npm/html/index.html
  /opt/local/lib/node_modules/npm/html/n-64.png
  /opt/local/lib/node_modules/npm/html/n-large.png
  /opt/local/lib/node_modules/npm/html/npm-16.png
  /opt/local/lib/node_modules/npm/html/npm-256-square.png
  /opt/local/lib/node_modules/npm/html/npm-256w.png
  /opt/local/lib/node_modules/npm/html/npm-64-square.png
  /opt/local/lib/node_modules/npm/html/npm-fin.png
  /opt/local/lib/node_modules/npm/html/npm-large.png
  /opt/local/lib/node_modules/npm/html/npm.png
  /opt/local/lib/node_modules/npm/lib/adduser.js
  /opt/local/lib/node_modules/npm/lib/bin.js
  /opt/local/lib/node_modules/npm/lib/bugs.js
  /opt/local/lib/node_modules/npm/lib/build.js
  /opt/local/lib/node_modules/npm/lib/cache.js
  /opt/local/lib/node_modules/npm/lib/completion.js
  /opt/local/lib/node_modules/npm/lib/config.js
  /opt/local/lib/node_modules/npm/lib/deprecate.js
  /opt/local/lib/node_modules/npm/lib/docs.js
  /opt/local/lib/node_modules/npm/lib/edit.js
  /opt/local/lib/node_modules/npm/lib/explore.js
  /opt/local/lib/node_modules/npm/lib/faq.js
  /opt/local/lib/node_modules/npm/lib/get.js
  /opt/local/lib/node_modules/npm/lib/help-search.js
  /opt/local/lib/node_modules/npm/lib/help.js
  /opt/local/lib/node_modules/npm/lib/init.js
  /opt/local/lib/node_modules/npm/lib/install.js
  /opt/local/lib/node_modules/npm/lib/link.js
  /opt/local/lib/node_modules/npm/lib/ls.js
  /opt/local/lib/node_modules/npm/lib/npm.js
  /opt/local/lib/node_modules/npm/lib/outdated.js
  /opt/local/lib/node_modules/npm/lib/owner.js
  /opt/local/lib/node_modules/npm/lib/pack.js
  /opt/local/lib/node_modules/npm/lib/prefix.js
  /opt/local/lib/node_modules/npm/lib/prune.js
  /opt/local/lib/node_modules/npm/lib/publish.js
  /opt/local/lib/node_modules/npm/lib/rebuild.js
  /opt/local/lib/node_modules/npm/lib/restart.js
  /opt/local/lib/node_modules/npm/lib/root.js
  /opt/local/lib/node_modules/npm/lib/run-script.js
  /opt/local/lib/node_modules/npm/lib/search.js
  /opt/local/lib/node_modules/npm/lib/set.js
  /opt/local/lib/node_modules/npm/lib/star.js
  /opt/local/lib/node_modules/npm/lib/start.js
  /opt/local/lib/node_modules/npm/lib/stop.js
  /opt/local/lib/node_modules/npm/lib/submodule.js
  /opt/local/lib/node_modules/npm/lib/tag.js
  /opt/local/lib/node_modules/npm/lib/test.js
  /opt/local/lib/node_modules/npm/lib/unbuild.js
  /opt/local/lib/node_modules/npm/lib/uninstall.js
  /opt/local/lib/node_modules/npm/lib/unpublish.js
  /opt/local/lib/node_modules/npm/lib/update.js
  /opt/local/lib/node_modules/npm/lib/update.js.orig
  /opt/local/lib/node_modules/npm/lib/utils/cmd-shim.js
  /opt/local/lib/node_modules/npm/lib/utils/completion.sh
  /opt/local/lib/node_modules/npm/lib/utils/completion/file-completion.js
  /opt/local/lib/node_modules/npm/lib/utils/completion/installed-deep.js
  /opt/local/lib/node_modules/npm/lib/utils/completion/installed-shallow.js
  /opt/local/lib/node_modules/npm/lib/utils/completion/remote-packages.js
  /opt/local/lib/node_modules/npm/lib/utils/completion/users.js
  /opt/local/lib/node_modules/npm/lib/utils/config-defs.js
  /opt/local/lib/node_modules/npm/lib/utils/error-handler.js
  /opt/local/lib/node_modules/npm/lib/utils/excludes.js
  /opt/local/lib/node_modules/npm/lib/utils/exec.js
  /opt/local/lib/node_modules/npm/lib/utils/fetch.js
  /opt/local/lib/node_modules/npm/lib/utils/find-prefix.js
  /opt/local/lib/node_modules/npm/lib/utils/find.js
  /opt/local/lib/node_modules/npm/lib/utils/get-agent.js
  /opt/local/lib/node_modules/npm/lib/utils/get.js
  /opt/local/lib/node_modules/npm/lib/utils/ini.js
  /opt/local/lib/node_modules/npm/lib/utils/lifecycle.js
  /opt/local/lib/node_modules/npm/lib/utils/link.js
  /opt/local/lib/node_modules/npm/lib/utils/load-package-defaults.js
  /opt/local/lib/node_modules/npm/lib/utils/log.js
  /opt/local/lib/node_modules/npm/lib/utils/mkdir-p.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/adduser.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/index.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/publish.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/star.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/tag.js
  /opt/local/lib/node_modules/npm/lib/utils/npm-registry-client/unpublish.js
  /opt/local/lib/node_modules/npm/lib/utils/output.js
  /opt/local/lib/node_modules/npm/lib/utils/promise-chain.js
  /opt/local/lib/node_modules/npm/lib/utils/prompt.js
  /opt/local/lib/node_modules/npm/lib/utils/read-installed.js
  /opt/local/lib/node_modules/npm/lib/utils/read-json.js
  /opt/local/lib/node_modules/npm/lib/utils/relativize.js
  /opt/local/lib/node_modules/npm/lib/utils/set.js
  /opt/local/lib/node_modules/npm/lib/utils/sha.js
  /opt/local/lib/node_modules/npm/lib/utils/tar.js
  /opt/local/lib/node_modules/npm/lib/utils/uid-number.js
  /opt/local/lib/node_modules/npm/lib/version.js
  /opt/local/lib/node_modules/npm/lib/view.js
  /opt/local/lib/node_modules/npm/lib/whoami.js
  /opt/local/lib/node_modules/npm/lib/xmas.js
  /opt/local/lib/node_modules/npm/man/man1/README.1
  /opt/local/lib/node_modules/npm/man/man1/adduser.1
  /opt/local/lib/node_modules/npm/man/man1/author.1
  /opt/local/lib/node_modules/npm/man/man1/bin.1
  /opt/local/lib/node_modules/npm/man/man1/bugs.1
  /opt/local/lib/node_modules/npm/man/man1/build.1
  /opt/local/lib/node_modules/npm/man/man1/bundle.1
  /opt/local/lib/node_modules/npm/man/man1/cache.1
  /opt/local/lib/node_modules/npm/man/man1/changelog.1
  /opt/local/lib/node_modules/npm/man/man1/coding-style.1
  /opt/local/lib/node_modules/npm/man/man1/completion.1
  /opt/local/lib/node_modules/npm/man/man1/config.1
  /opt/local/lib/node_modules/npm/man/man1/deprecate.1
  /opt/local/lib/node_modules/npm/man/man1/developers.1
  /opt/local/lib/node_modules/npm/man/man1/docs.1
  /opt/local/lib/node_modules/npm/man/man1/edit.1
  /opt/local/lib/node_modules/npm/man/man1/explore.1
  /opt/local/lib/node_modules/npm/man/man1/faq.1
  /opt/local/lib/node_modules/npm/man/man1/find.1
  /opt/local/lib/node_modules/npm/man/man1/folders.1
  /opt/local/lib/node_modules/npm/man/man1/get.1
  /opt/local/lib/node_modules/npm/man/man1/global.1
  /opt/local/lib/node_modules/npm/man/man1/help-search.1
  /opt/local/lib/node_modules/npm/man/man1/help.1
  /opt/local/lib/node_modules/npm/man/man1/home.1
  /opt/local/lib/node_modules/npm/man/man1/index.1
  /opt/local/lib/node_modules/npm/man/man1/init.1
  /opt/local/lib/node_modules/npm/man/man1/install.1
  /opt/local/lib/node_modules/npm/man/man1/json.1
  /opt/local/lib/node_modules/npm/man/man1/link.1
  /opt/local/lib/node_modules/npm/man/man1/list.1
  /opt/local/lib/node_modules/npm/man/man1/ln.1
  /opt/local/lib/node_modules/npm/man/man1/ls.1
  /opt/local/lib/node_modules/npm/man/man1/npm.1
  /opt/local/lib/node_modules/npm/man/man1/outdated.1
  /opt/local/lib/node_modules/npm/man/man1/owner.1
  /opt/local/lib/node_modules/npm/man/man1/pack.1
  /opt/local/lib/node_modules/npm/man/man1/prefix.1
  /opt/local/lib/node_modules/npm/man/man1/prune.1
  /opt/local/lib/node_modules/npm/man/man1/publish.1
  /opt/local/lib/node_modules/npm/man/man1/rebuild.1
  /opt/local/lib/node_modules/npm/man/man1/registry.1
  /opt/local/lib/node_modules/npm/man/man1/removing-npm.1
  /opt/local/lib/node_modules/npm/man/man1/restart.1
  /opt/local/lib/node_modules/npm/man/man1/rm.1
  /opt/local/lib/node_modules/npm/man/man1/root.1
  /opt/local/lib/node_modules/npm/man/man1/run-script.1
  /opt/local/lib/node_modules/npm/man/man1/scripts.1
  /opt/local/lib/node_modules/npm/man/man1/search.1
  /opt/local/lib/node_modules/npm/man/man1/semver.1
  /opt/local/lib/node_modules/npm/man/man1/set.1
  /opt/local/lib/node_modules/npm/man/man1/star.1
  /opt/local/lib/node_modules/npm/man/man1/start.1
  /opt/local/lib/node_modules/npm/man/man1/stop.1
  /opt/local/lib/node_modules/npm/man/man1/submodule.1
  /opt/local/lib/node_modules/npm/man/man1/tag.1
  /opt/local/lib/node_modules/npm/man/man1/test.1
  /opt/local/lib/node_modules/npm/man/man1/uninstall.1
  /opt/local/lib/node_modules/npm/man/man1/unpublish.1
  /opt/local/lib/node_modules/npm/man/man1/update.1
  /opt/local/lib/node_modules/npm/man/man1/version.1
  /opt/local/lib/node_modules/npm/man/man1/view.1
  /opt/local/lib/node_modules/npm/man/man1/whoami.1
  /opt/local/lib/node_modules/npm/man/man3/author.3
  /opt/local/lib/node_modules/npm/man/man3/bin.3
  /opt/local/lib/node_modules/npm/man/man3/bugs.3
  /opt/local/lib/node_modules/npm/man/man3/commands.3
  /opt/local/lib/node_modules/npm/man/man3/config.3
  /opt/local/lib/node_modules/npm/man/man3/deprecate.3
  /opt/local/lib/node_modules/npm/man/man3/docs.3
  /opt/local/lib/node_modules/npm/man/man3/edit.3
  /opt/local/lib/node_modules/npm/man/man3/explore.3
  /opt/local/lib/node_modules/npm/man/man3/find.3
  /opt/local/lib/node_modules/npm/man/man3/get.3
  /opt/local/lib/node_modules/npm/man/man3/help-search.3
  /opt/local/lib/node_modules/npm/man/man3/home.3
  /opt/local/lib/node_modules/npm/man/man3/init.3
  /opt/local/lib/node_modules/npm/man/man3/install.3
  /opt/local/lib/node_modules/npm/man/man3/link.3
  /opt/local/lib/node_modules/npm/man/man3/list.3
  /opt/local/lib/node_modules/npm/man/man3/ln.3
  /opt/local/lib/node_modules/npm/man/man3/load.3
  /opt/local/lib/node_modules/npm/man/man3/ls.3
  /opt/local/lib/node_modules/npm/man/man3/npm.3
  /opt/local/lib/node_modules/npm/man/man3/outdated.3
  /opt/local/lib/node_modules/npm/man/man3/owner.3
  /opt/local/lib/node_modules/npm/man/man3/pack.3
  /opt/local/lib/node_modules/npm/man/man3/prefix.3
  /opt/local/lib/node_modules/npm/man/man3/prune.3
  /opt/local/lib/node_modules/npm/man/man3/publish.3
  /opt/local/lib/node_modules/npm/man/man3/rebuild.3
  /opt/local/lib/node_modules/npm/man/man3/restart.3
  /opt/local/lib/node_modules/npm/man/man3/rm.3
  /opt/local/lib/node_modules/npm/man/man3/root.3
  /opt/local/lib/node_modules/npm/man/man3/run-script.3
  /opt/local/lib/node_modules/npm/man/man3/search.3
  /opt/local/lib/node_modules/npm/man/man3/set.3
  /opt/local/lib/node_modules/npm/man/man3/start.3
  /opt/local/lib/node_modules/npm/man/man3/stop.3
  /opt/local/lib/node_modules/npm/man/man3/submodule.3
  /opt/local/lib/node_modules/npm/man/man3/tag.3
  /opt/local/lib/node_modules/npm/man/man3/test.3
  /opt/local/lib/node_modules/npm/man/man3/uninstall.3
  /opt/local/lib/node_modules/npm/man/man3/unpublish.3
  /opt/local/lib/node_modules/npm/man/man3/update.3
  /opt/local/lib/node_modules/npm/man/man3/version.3
  /opt/local/lib/node_modules/npm/man/man3/view.3
  /opt/local/lib/node_modules/npm/man/man3/whoami.3
  /opt/local/lib/node_modules/npm/node_modules/.bin/nopt
  /opt/local/lib/node_modules/npm/node_modules/.bin/semver
  /opt/local/lib/node_modules/npm/node_modules/.bin/which
  /opt/local/lib/node_modules/npm/node_modules/abbrev/README.md
  /opt/local/lib/node_modules/npm/node_modules/abbrev/lib/abbrev.js
  /opt/local/lib/node_modules/npm/node_modules/abbrev/package.json
  /opt/local/lib/node_modules/npm/node_modules/graceful-fs/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/graceful-fs/README.md
  /opt/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js
  /opt/local/lib/node_modules/npm/node_modules/graceful-fs/package.json
  /opt/local/lib/node_modules/npm/node_modules/ini/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/ini/README.md
  /opt/local/lib/node_modules/npm/node_modules/ini/ini.js
  /opt/local/lib/node_modules/npm/node_modules/ini/package.json
  /opt/local/lib/node_modules/npm/node_modules/ini/test/fixtures/foo.ini
  /opt/local/lib/node_modules/npm/node_modules/ini/test/foo.js
  /opt/local/lib/node_modules/npm/node_modules/minimatch/.gitmodules
  /opt/local/lib/node_modules/npm/node_modules/minimatch/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/minimatch/README.md
  /opt/local/lib/node_modules/npm/node_modules/minimatch/minimatch.js
  /opt/local/lib/node_modules/npm/node_modules/minimatch/node_modules/lru-cache/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/minimatch/node_modules/lru-cache/README.md
  /opt/local/lib/node_modules/npm/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js
  /opt/local/lib/node_modules/npm/node_modules/minimatch/node_modules/lru-cache/package.json
  /opt/local/lib/node_modules/npm/node_modules/minimatch/package.json
  /opt/local/lib/node_modules/npm/node_modules/minimatch/test/basic.js
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/LICENSE.md
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/README.md
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/package.json
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/test/benchmark-native.c
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/test/benchmark.js
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/test/test.html
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/test/test.js
  /opt/local/lib/node_modules/npm/node_modules/node-uuid/uuid.js
  /opt/local/lib/node_modules/npm/node_modules/nopt/.gitignore
  /opt/local/lib/node_modules/npm/node_modules/nopt/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/nopt/README.md
  /opt/local/lib/node_modules/npm/node_modules/nopt/bin/nopt.js
  /opt/local/lib/node_modules/npm/node_modules/nopt/examples/my-program.js
  /opt/local/lib/node_modules/npm/node_modules/nopt/lib/nopt.js
  /opt/local/lib/node_modules/npm/node_modules/nopt/package.json
  /opt/local/lib/node_modules/npm/node_modules/proto-list/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/proto-list/README.md
  /opt/local/lib/node_modules/npm/node_modules/proto-list/package.json
  /opt/local/lib/node_modules/npm/node_modules/proto-list/proto-list.js
  /opt/local/lib/node_modules/npm/node_modules/request/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/request/README.md
  /opt/local/lib/node_modules/npm/node_modules/request/main.js
  /opt/local/lib/node_modules/npm/node_modules/request/mimetypes.js
  /opt/local/lib/node_modules/npm/node_modules/request/package.json
  /opt/local/lib/node_modules/npm/node_modules/request/tests/googledoodle.png
  /opt/local/lib/node_modules/npm/node_modules/request/tests/run.sh
  /opt/local/lib/node_modules/npm/node_modules/request/tests/server.js
  /opt/local/lib/node_modules/npm/node_modules/request/tests/test-body.js
  /opt/local/lib/node_modules/npm/node_modules/request/tests/test-errors.js
  /opt/local/lib/node_modules/npm/node_modules/request/tests/test-pipes.js
  /opt/local/lib/node_modules/npm/node_modules/request/tests/test-timeout.js
  /opt/local/lib/node_modules/npm/node_modules/rimraf/AUTHORS
  /opt/local/lib/node_modules/npm/node_modules/rimraf/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/rimraf/README.md
  /opt/local/lib/node_modules/npm/node_modules/rimraf/fiber.js
  /opt/local/lib/node_modules/npm/node_modules/rimraf/package.json
  /opt/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js
  /opt/local/lib/node_modules/npm/node_modules/rimraf/test/run.sh
  /opt/local/lib/node_modules/npm/node_modules/rimraf/test/setup.sh
  /opt/local/lib/node_modules/npm/node_modules/rimraf/test/test-async.js
  /opt/local/lib/node_modules/npm/node_modules/rimraf/test/test-fiber.js
  /opt/local/lib/node_modules/npm/node_modules/rimraf/test/test-sync.js
  /opt/local/lib/node_modules/npm/node_modules/semver/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/semver/README.md
  /opt/local/lib/node_modules/npm/node_modules/semver/bin/semver
  /opt/local/lib/node_modules/npm/node_modules/semver/package.json
  /opt/local/lib/node_modules/npm/node_modules/semver/semver.js
  /opt/local/lib/node_modules/npm/node_modules/semver/test.js
  /opt/local/lib/node_modules/npm/node_modules/slide/.npmignore
  /opt/local/lib/node_modules/npm/node_modules/slide/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/slide/README.md
  /opt/local/lib/node_modules/npm/node_modules/slide/index.js
  /opt/local/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js
  /opt/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js
  /opt/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js
  /opt/local/lib/node_modules/npm/node_modules/slide/lib/chain.js
  /opt/local/lib/node_modules/npm/node_modules/slide/lib/slide.js
  /opt/local/lib/node_modules/npm/node_modules/slide/package.json
  /opt/local/lib/node_modules/npm/node_modules/which/LICENSE
  /opt/local/lib/node_modules/npm/node_modules/which/README.md
  /opt/local/lib/node_modules/npm/node_modules/which/bin/which
  /opt/local/lib/node_modules/npm/node_modules/which/package.json
  /opt/local/lib/node_modules/npm/node_modules/which/which.js
  /opt/local/lib/node_modules/npm/package.json
  /opt/local/lib/node_modules/npm/scripts/clean-old.sh
  /opt/local/lib/node_modules/npm/scripts/doc-build.sh
  /opt/local/lib/node_modules/npm/scripts/index-build.js
  /opt/local/lib/node_modules/npm/scripts/install.sh
  /opt/local/lib/node_modules/npm/test/common.js
  /opt/local/lib/node_modules/npm/test/disabled/bundlerecurs/package.json
  /opt/local/lib/node_modules/npm/test/disabled/failer/package.json
  /opt/local/lib/node_modules/npm/test/disabled/fast/package.json
  /opt/local/lib/node_modules/npm/test/disabled/package-config/package.json
  /opt/local/lib/node_modules/npm/test/disabled/package-config/test.js
  /opt/local/lib/node_modules/npm/test/disabled/slow/package.json
  /opt/local/lib/node_modules/npm/test/disabled/startstop/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-blerg/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-blerg/test.js
  /opt/local/lib/node_modules/npm/test/packages/npm-test-env-reader/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-env-reader/test.sh
  /opt/local/lib/node_modules/npm/test/packages/npm-test-missing-bindir/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-missing-bindir/test.js
  /opt/local/lib/node_modules/npm/test/packages/npm-test-private/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-test-package/package.json
  /opt/local/lib/node_modules/npm/test/packages/npm-test-url-dep/package.json
  /opt/local/lib/node_modules/npm/test/run
  /opt/local/lib/node_modules/npm/test/update-test.sh
  /opt/local/share/man/man1/npm-README.1.gz
  /opt/local/share/man/man1/npm-adduser.1.gz
  /opt/local/share/man/man1/npm-author.1.gz
  /opt/local/share/man/man1/npm-bin.1.gz
  /opt/local/share/man/man1/npm-bugs.1.gz
  /opt/local/share/man/man1/npm-build.1.gz
  /opt/local/share/man/man1/npm-bundle.1.gz
  /opt/local/share/man/man1/npm-cache.1.gz
  /opt/local/share/man/man1/npm-changelog.1.gz
  /opt/local/share/man/man1/npm-coding-style.1.gz
  /opt/local/share/man/man1/npm-completion.1.gz
  /opt/local/share/man/man1/npm-config.1.gz
  /opt/local/share/man/man1/npm-deprecate.1.gz
  /opt/local/share/man/man1/npm-developers.1.gz
  /opt/local/share/man/man1/npm-docs.1.gz
  /opt/local/share/man/man1/npm-edit.1.gz
  /opt/local/share/man/man1/npm-explore.1.gz
  /opt/local/share/man/man1/npm-faq.1.gz
  /opt/local/share/man/man1/npm-find.1.gz
  /opt/local/share/man/man1/npm-folders.1.gz
  /opt/local/share/man/man1/npm-get.1.gz
  /opt/local/share/man/man1/npm-global.1.gz
  /opt/local/share/man/man1/npm-help-search.1.gz
  /opt/local/share/man/man1/npm-help.1.gz
  /opt/local/share/man/man1/npm-home.1.gz
  /opt/local/share/man/man1/npm-index.1.gz
  /opt/local/share/man/man1/npm-init.1.gz
  /opt/local/share/man/man1/npm-install.1.gz
  /opt/local/share/man/man1/npm-json.1.gz
  /opt/local/share/man/man1/npm-link.1.gz
  /opt/local/share/man/man1/npm-list.1.gz
  /opt/local/share/man/man1/npm-ln.1.gz
  /opt/local/share/man/man1/npm-ls.1.gz
  /opt/local/share/man/man1/npm-outdated.1.gz
  /opt/local/share/man/man1/npm-owner.1.gz
  /opt/local/share/man/man1/npm-pack.1.gz
  /opt/local/share/man/man1/npm-prefix.1.gz
  /opt/local/share/man/man1/npm-prune.1.gz
  /opt/local/share/man/man1/npm-publish.1.gz
  /opt/local/share/man/man1/npm-rebuild.1.gz
  /opt/local/share/man/man1/npm-registry.1.gz
  /opt/local/share/man/man1/npm-removing-npm.1.gz
  /opt/local/share/man/man1/npm-restart.1.gz
  /opt/local/share/man/man1/npm-rm.1.gz
  /opt/local/share/man/man1/npm-root.1.gz
  /opt/local/share/man/man1/npm-run-script.1.gz
  /opt/local/share/man/man1/npm-scripts.1.gz
  /opt/local/share/man/man1/npm-search.1.gz
  /opt/local/share/man/man1/npm-semver.1.gz
  /opt/local/share/man/man1/npm-set.1.gz
  /opt/local/share/man/man1/npm-star.1.gz
  /opt/local/share/man/man1/npm-start.1.gz
  /opt/local/share/man/man1/npm-stop.1.gz
  /opt/local/share/man/man1/npm-submodule.1.gz
  /opt/local/share/man/man1/npm-tag.1.gz
  /opt/local/share/man/man1/npm-test.1.gz
  /opt/local/share/man/man1/npm-uninstall.1.gz
  /opt/local/share/man/man1/npm-unpublish.1.gz
  /opt/local/share/man/man1/npm-update.1.gz
  /opt/local/share/man/man1/npm-version.1.gz
  /opt/local/share/man/man1/npm-view.1.gz
  /opt/local/share/man/man1/npm-whoami.1.gz
  /opt/local/share/man/man1/npm.1.gz
  /opt/local/share/man/man3/npm-author.3.gz
  /opt/local/share/man/man3/npm-bin.3.gz
  /opt/local/share/man/man3/npm-bugs.3.gz
  /opt/local/share/man/man3/npm-commands.3.gz
  /opt/local/share/man/man3/npm-config.3.gz
  /opt/local/share/man/man3/npm-deprecate.3.gz
  /opt/local/share/man/man3/npm-docs.3.gz
  /opt/local/share/man/man3/npm-edit.3.gz
  /opt/local/share/man/man3/npm-explore.3.gz
  /opt/local/share/man/man3/npm-find.3.gz
  /opt/local/share/man/man3/npm-get.3.gz
  /opt/local/share/man/man3/npm-help-search.3.gz
  /opt/local/share/man/man3/npm-home.3.gz
  /opt/local/share/man/man3/npm-init.3.gz
  /opt/local/share/man/man3/npm-install.3.gz
  /opt/local/share/man/man3/npm-link.3.gz
  /opt/local/share/man/man3/npm-list.3.gz
  /opt/local/share/man/man3/npm-ln.3.gz
  /opt/local/share/man/man3/npm-load.3.gz
  /opt/local/share/man/man3/npm-ls.3.gz
  /opt/local/share/man/man3/npm-outdated.3.gz
  /opt/local/share/man/man3/npm-owner.3.gz
  /opt/local/share/man/man3/npm-pack.3.gz
  /opt/local/share/man/man3/npm-prefix.3.gz
  /opt/local/share/man/man3/npm-prune.3.gz
  /opt/local/share/man/man3/npm-publish.3.gz
  /opt/local/share/man/man3/npm-rebuild.3.gz
  /opt/local/share/man/man3/npm-restart.3.gz
  /opt/local/share/man/man3/npm-rm.3.gz
  /opt/local/share/man/man3/npm-root.3.gz
  /opt/local/share/man/man3/npm-run-script.3.gz
  /opt/local/share/man/man3/npm-search.3.gz
  /opt/local/share/man/man3/npm-set.3.gz
  /opt/local/share/man/man3/npm-start.3.gz
  /opt/local/share/man/man3/npm-stop.3.gz
  /opt/local/share/man/man3/npm-submodule.3.gz
  /opt/local/share/man/man3/npm-tag.3.gz
  /opt/local/share/man/man3/npm-test.3.gz
  /opt/local/share/man/man3/npm-uninstall.3.gz
  /opt/local/share/man/man3/npm-unpublish.3.gz
  /opt/local/share/man/man3/npm-update.3.gz
  /opt/local/share/man/man3/npm-version.3.gz
  /opt/local/share/man/man3/npm-view.3.gz
  /opt/local/share/man/man3/npm-whoami.3.gz
  /opt/local/share/man/man3/npm.3.gz

Changed 13 years ago by conradwt (Conrad Taylor)

Attachment: npm-main.log added

npm-main.log

comment:7 Changed 13 years ago by conradwt (Conrad Taylor)

OK, after looking at main.log, npm is being completed uninstalled when one does the following:

sudo port uninstall npm
sudo port clean --all npm

For example, after executing the above, I'm still left with the following:

lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm-g -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm-g.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm-g.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm_g -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm_g.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm_g.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js

Furthermore, when checking to see if npm is installed:

$ port installed npm
None of the specified ports are installed.

$ which npm
/opt/local/bin/npm

$ npm list
/opt/local/lib
├── coffee-script@1.1.2 
├─┬ js2coffee@0.1.1 
│ ├── coffee-script@1.1.1 
│ └── underscore@1.1.7 
└─┬ npm@1.0.106 
  ├── abbrev@1.0.3 
  ├── graceful-fs@1.0.1 
  ├── ini@1.0.1 
  ├─┬ minimatch@0.0.4 
  │ └── lru-cache@1.0.4 
  ├── node-uuid@1.2.0 
  ├── nopt@1.0.10 
  ├── proto-list@1.0.0 
  ├── request@2.1.1 
  ├── rimraf@1.0.8 
  ├── semver@1.0.11 
  ├── slide@1.1.3 
  └── which@1.0.2 

comment:8 in reply to:  7 Changed 13 years ago by conradwt (Conrad Taylor)

Replying to conradwt@…:

OK, after looking at main.log, npm is being completed uninstalled when one does the following:

I meant npm isn't being completely uninstalled when one does the following:

sudo port uninstall npm
sudo port clean --all npm

For example, after executing the above, I'm still left with the following:

lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm-g -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm-g.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm-g.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm_g -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm_g.mp_1323310545 -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm_g.mp_1323323255 -> ../lib/node_modules/npm/bin/npm-cli.js

Furthermore, when checking to see if npm is installed:

$ port installed npm
None of the specified ports are installed.

$ which npm
/opt/local/bin/npm

$ npm list
/opt/local/lib
├── coffee-script@1.1.2 
├─┬ js2coffee@0.1.1 
│ ├── coffee-script@1.1.1 
│ └── underscore@1.1.7 
└─┬ npm@1.0.106 
  ├── abbrev@1.0.3 
  ├── graceful-fs@1.0.1 
  ├── ini@1.0.1 
  ├─┬ minimatch@0.0.4 
  │ └── lru-cache@1.0.4 
  ├── node-uuid@1.2.0 
  ├── nopt@1.0.10 
  ├── proto-list@1.0.0 
  ├── request@2.1.1 
  ├── rimraf@1.0.8 
  ├── semver@1.0.11 
  ├── slide@1.1.3 
  └── which@1.0.2 

comment:9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

The presence of files with extensions like .mp_1323310545 indicate that MacPorts at one point told you that a port could not be activated because a file it wanted to install already existed, and you overrode that message by using the -f (force) flag, which was probably not the right thing to do.

Please ensure again that npm is not installed by looking at

port installed npm

If it is installed,

sudo port uninstall npm

Then manually delete any remaining npm-related items:

sudo port rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*

Then clean and install the npm port again.

sudo port clean npm
sudo port install npm

Does npm now work?

comment:10 in reply to:  9 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign@…:

sudo port rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*

Correction:

sudo rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*

comment:11 Changed 13 years ago by conradwt (Conrad Taylor)

Here's the transcript:

$ port installed npm
The following ports are currently installed:
  npm @1.0.106_1
[17:41] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port uninstall npm
Password:
--->  Uninstalling npm @1.0.106_1
--->  Cleaning npm
[17:41] [/opt/local/bin] [ruby] [1.9.3]  $ sudo rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*
Password:
[17:42] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port clean npm
Password:
--->  Cleaning npm
[17:42] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port install npm
Password:
--->  Computing dependencies for npm
--->  Fetching archive for npm
--->  Attempting to fetch npm-1.0.106_1.darwin_11.noarch.tbz2 from http://packages.macports.org/npm
--->  Fetching npm
--->  Verifying checksum(s) for npm
--->  Extracting npm
--->  Applying patches to npm
--->  Configuring npm
--->  Building npm
--->  Staging npm into destroot
--->  Installing npm @1.0.106_1
--->  Activating npm @1.0.106_1
Error: Target org.macports.activate returned: Image error: /opt/local/bin/npm already exists and does not belong to a registered port.  Unable to activate port npm. Use 'port -f activate npm' to force the activation.
Log for npm is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_npm/npm/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: npm.destroot.diff added

patch for testing

comment:12 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

It seems that for some reason, on your system, npm is getting installed directly to /opt/local/lib/node_modules, bypassing the destroot.

The port is installing npm by the following mechanism:

system -W ${destroot}${prefix}/lib "${prefix}/bin/node ${worksrcpath}/cli.js install ${worksrcpath}"

This relies on npm's behavior of creating a node_modules directory inside the current directory (${destroot}${prefix}/lib) and installing things there -- but only if a node_modules directory is not found in any parent directory. You showed in your transcript that you deleted the node_modules directory and yet it still happened. And I cannot reproduce it even if I create a node_modules directory beforehand. But I still suspect the problem relates to this.

I've attached a patch which simplifies the destroot considerably by switching to use npm's own global install mechanism, and telling it explicitly where we want files to go. The global switch also tells npm to install programs and manpage symlinks, so we no longer need to do that manually. This patch works for me, but since I was never able to reproduce the problem, can you test the patch and see if it resolves it for you? You will have to run the "sudo rm -rf" command from above again first or you will run into the same activation error.

comment:13 Changed 13 years ago by conradwt (Conrad Taylor)

Ryan, that appears to have resolved the issue that I was having locally on my system:

$ sudo port uninstall npm
Password:
--->  Uninstalling npm @1.0.106_1
--->  Cleaning npm
[19:58] [~] [ruby] [1.9.3]  $ sudo port clean npm
Password:
--->  Cleaning npm
[19:58] [~] [ruby] [1.9.3]  $ sudo rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*
Password:
Sorry, try again.
Password:
[19:58] [~] [ruby] [1.9.3]  $ cd $(port dir npm)
[20:03] [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm] [ruby] [1.9.3]  $ sudo patch -p0 < ~/Desktop/npm.destroot.diff 
Password:
patching file Portfile
[20:04] [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm] [ruby] [1.9.3]  $ sudo port install npm
Password:
--->  Computing dependencies for npm
--->  Fetching archive for npm
--->  Attempting to fetch npm-1.0.106_2.darwin_11.noarch.tbz2 from http://packages.macports.org/npm
--->  Fetching npm
--->  Verifying checksum(s) for npm
--->  Extracting npm
--->  Applying patches to npm
--->  Configuring npm
--->  Building npm
--->  Staging npm into destroot
--->  Installing npm @1.0.106_2
--->  Activating npm @1.0.106_2

It is not recommended to install packages globally. But if you do so please be aware that they won't get cleaned up when you deactivate or uninstall npm. Globally installed packages will remain in /opt/local/lib/node_modules/ until you
manually delete them.

--->  Cleaning npm
[20:05] [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm] [ruby] [1.9.3]  $ which npm
/opt/local/bin/npm
[20:05] [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm] [ruby] [1.9.3]  $ npm list
/opt/local/lib
└─┬ npm@1.0.106 
  ├── abbrev@1.0.3 
  ├── graceful-fs@1.0.1 
  ├── ini@1.0.1 
  ├─┬ minimatch@0.0.4 
  │ └── lru-cache@1.0.4 
  ├── node-uuid@1.2.0 
  ├── nopt@1.0.10 
  ├── proto-list@1.0.0 
  ├── request@2.1.1 
  ├── rimraf@1.0.8 
  ├── semver@1.0.11 
  ├── slide@1.1.3 
  └── which@1.0.2 

comment:14 in reply to:  12 Changed 13 years ago by ci42

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

It seems that for some reason, on your system, npm is getting installed directly to /opt/local/lib/node_modules, bypassing the destroot.

The port is installing npm by the following mechanism:

system -W ${destroot}${prefix}/lib "${prefix}/bin/node ${worksrcpath}/cli.js install ${worksrcpath}"

This relies on npm's behavior of creating a node_modules directory inside the current directory (${destroot}${prefix}/lib) and installing things there -- but only if a node_modules directory is not found in any parent directory. You showed in your transcript that you deleted the node_modules directory and yet it still happened. And I cannot reproduce it even if I create a node_modules directory beforehand. But I still suspect the problem relates to this.

I've attached a patch which simplifies the destroot considerably by switching to use npm's own global install mechanism, and telling it explicitly where we want files to go. The global switch also tells npm to install programs and manpage symlinks, so we no longer need to do that manually. This patch works for me, but since I was never able to reproduce the problem, can you test the patch and see if it resolves it for you? You will have to run the "sudo rm -rf" command from above again first or you will run into the same activation error.

Thanks. Committed in r87856.

Note: See TracTickets for help on using tickets.