Cannot call method 'split' of null #2567

Closed
balupton opened this Issue Jun 26, 2012 · 1 comment

Projects

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
v0.8.0

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

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

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

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

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 https://registry.npmjs.org/strscan
npm ERR! TypeError: Cannot call method 'split' of null
npm ERR!     at writeShim_ (C:\Documents and Settings\Administrator\Application
Data\npm\node_modules\docpad\node_modules\npm\lib\utils\cmd-shim.js:65:21)
npm ERR!     at C:\Documents and Settings\Administrator\Application Data\npm\nod
e_modules\docpad\node_modules\npm\lib\utils\cmd-shim.js:54:26
npm ERR!     at fs.readFile (fs.js:176:14)
npm ERR!     at fs.close (C:\Documents and Settings\Administrator\Application Da
ta\npm\node_modules\docpad\node_modules\npm\node_modules\graceful-fs\graceful-fs
.js:94:5)
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!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

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: https://gist.github.com/2995326

@isaacs isaacs closed this in 218fcb7 Jun 27, 2012
Owner
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