maxogden/datacouch — Issue #26: npm install does not catch jsonparse module
Author: coleGillespie
Created: 2012-01-29 03:04:50+00:00
State: open

I started with a fresh clone of your latest node_server branch

Steps to replicate:

1. git checkout -b node_server_dev upstream/node_server
2. node run.
3. npm install ( to get csv )
4. node run ( npm install does not catch jsonparse )
5. npm install ( nothing but a underscore warning )
6. node run ( fail )

would it be best to add json parse to node_server branch to prevent this from happening to other in the future??

Log listed below

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

Coles-MacBook-Air:datacouch cole$ node run
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'csv'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/Users/cole/Public/github/datacouch/service/csv_uploader.js:2:11)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)

Coles-MacBook-Air:datacouch cole$ npm install
npm WARN underscore@1.2.1 dependencies field should be hash of : pairs
npm http GET https://registry.npmjs.org/csv/0.0.10
npm http GET https://registry.npmjs.org/couchapp/0.8.1
npm http 304 https://registry.npmjs.org/couchapp/0.8.1
npm http 304 https://registry.npmjs.org/csv/0.0.10
couchapp@0.8.1 ./node_modules/couchapp
csv@0.0.10 ./node_modules/csv

Coles-MacBook-Air:datacouch cole$ node run
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'jsonparse'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/Users/cole/Public/github/datacouch/node_modules/JSONStream/index.js:2:14)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)

Coles-MacBook-Air:datacouch cole$ npm install
npm WARN underscore@1.2.1 dependencies field should be hash of : pairs

Coles-MacBook-Air:datacouch cole$ node run
The "sys" module is now called "util". It should have a similar interface.

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'jsonparse'