isaacs/npm — Issue #1927: Error installing Express App dependencies on Windows 7
Author: cruzfg
Created: 2011-12-22 22:55:17+00:00
State: open

This error occurs after Express has created the app successfully.
With command: express -s -t -c

Note: on first attempt express didn't want to create the app with these parameter because it ran into some sort of problem with the OS creating the javascripts dir.

I ran again and it created the app file and folder hierarchy. I think it might be some sort of race condition with these params.

I then cd into the dir. Proceeded to do a npm install and got a series of error which included posting a new issues at this link.

C:\sysbin\cruz\research\nodeCode\expressDev\n00b>npm install
npm http GET https://registry.npmjs.org/-c
npm http GET https://registry.npmjs.org/express/2.5.2
npm http 304 https://registry.npmjs.org/express/2.5.2
npm http 404 https://registry.npmjs.org/-c
npm ERR! TypeError: Object.keys called on non-object
npm ERR! at Function.keys (native)
npm ERR! at next_ (C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.
js:428:34)
npm ERR! at next (C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.j
s:415:44)
npm ERR! at C:\Program Files (x86)\nodejs\node_modules\npm\lib\cache.js:408:
5
npm ERR! at Object.saved [as oncomplete] (C:\Program Files (x86)\nodejs\node
_modules\npm\lib\utils\npm-registry-client\get.js:147:7)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\sysbin\cruz\research\nodeCode\expressDev\n00b
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! type obj_ctor_property_non_object
npm ERR! arguments [ 'keys' ]
npm ERR! message Object.keys called on non-object
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\sysbin\cruz\research\nodeCode\expressDev\n00b\npm-debug.log
npm not ok

C:\sysbin\cruz\research\nodeCode\expressDev\n00b>

Note if I don't include the session, template and css parameters when creating the application and then cd into the folder (n00b in this case) and do the install npm there are no errors reported.