isaacs/npm — Issue #1780: Can not install packages through Cloud9.
Author: CaptainOz
Created: 2011-11-24 01:46:18+00:00
State: open

On a new Cloud9 project I entered `npm install mechanize`. I am not sure if this is a problem with @ajaxorg's environment on Cloud9, but in any case the error should be handled more gracefully by NPM I believe.

```
npm ERR! TypeError: Object 0.01 has no method 'match'
npm ERR! at Object.parse (/mnt/ws/users/captainoz/npm/node_modules/semver/semver.js:24:52)
npm ERR! at Object.valid (/mnt/ws/users/captainoz/npm/node_modules/semver/semver.js:44:18)
npm ERR! at /mnt/ws/users/captainoz/npm/lib/utils/read-json.js:199:16
npm ERR! at /mnt/ws/users/captainoz/npm/lib/utils/read-json.js:85:32
npm ERR! at P (/mnt/ws/users/captainoz/npm/lib/utils/read-json.js:62:40)
npm ERR! at cb (/mnt/ws/users/captainoz/npm/lib/utils/graceful-fs.js:31:9)
npm ERR! at [object Object]. (fs.js:107:5)
npm ERR! at [object Object].emit (events.js:61:17)
npm ERR! at afterRead (fs.js:878:12)
npm ERR! at wrapper (fs.js:245:17)
npm ERR! Report this *entire* log at:
npm ERR! ;
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System SunOS 5.11
npm ERR! command "/home/cloud9/c9/support/node-c9-builds-v4/node-c9-sunos" "/home/ide_captainoz/workspaces/npm/bin/npm.js" "install" "mechanize"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /mnt/ws/users/captainoz/104917/npm-debug.log
npm not ok
```