Cannot call method 'split' of null #2567

balupton opened this Issue Jun 26, 2012 · 1 comment


None yet

2 participants

I get this every time when cloning out a skeleton with docpad on windows xp and on windows 8 (haven't tried other windows versions). OSX is fine.

C:\Documents and Settings\Administrator>node --version

C:\Documents and Settings\Administrator>npm --version

C:\Documents and Settings\Administrator>npm install -g docpad
works fine

C:\Documents and Settings\Administrator>docpad --version

C:\Documents and Settings\Administrator>"Application Data\npm\node_modules\docpad\node_modules\.bin\npm" --version

C:\Documents and Settings\Administrator>mkdir test 4
C:\Documents and Settings\Administrator>cd test 4
C:\Documents and Settings\Administrator\test4>docpad run
press 3 to pick the kitchensink skeleton,
this will clone out the kitchensink skeleton into the cwd,
and run `npm install` using DocPad's npm installation,
we'll eventually get an error like this:

npm http GET
npm ERR! TypeError: Cannot call method 'split' of null
npm ERR!     at writeShim_ (C:\Documents and Settings\Administrator\Application
npm ERR!     at C:\Documents and Settings\Administrator\Application Data\npm\nod
npm ERR!     at fs.readFile (fs.js:176:14)
npm ERR!     at fs.close (C:\Documents and Settings\Administrator\Application Da
npm ERR!     at Object.oncomplete (fs.js:297:15)
npm ERR!  [TypeError: Cannot call method 'split' of null]
npm ERR! You may report this log at:
npm ERR!     <>
npm ERR! or email it to:
npm ERR!     <>

npm ERR! System Windows_NT 5.1.2600
npm ERR! command "node" "C:\\Documents and Settings\\Administrator\\Application
Data\\npm\\node_modules\\docpad\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Documents and Settings\Administrator\test4
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.32
npm ERR! type non_object_property_call
npm ERR! message Cannot call method 'split' of null

Full npm-debug.log file is here:

@isaacs isaacs closed this in 218fcb7 Jun 27, 2012
isaacs commented Jun 27, 2012

Note: @creationix fixed the root cause of this: creationix/haml-js#67 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment