Error installing Express App dependencies on Windows 7 #1927

Closed
cruzfg opened this Issue Dec 22, 2011 · 1 comment

Projects

None yet

2 participants

@cruzfg

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

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 app_name 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
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
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 app_name folder (n00b in this case) and do the install npm there are no errors reported.

@mfncooper
npm member

Fixed some time ago.

@mfncooper mfncooper closed this Feb 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment