balupton/docpad — Issue #111: Fails to prepare plugins with latest node on windows
Author: balupton
Created: 2011-12-13 21:17:14+00:00
State: open
Labels: core, underway

```
warning: Failed to load the plugin totaldocuments at C:\projects\test/plugins/t
taldocuments. The error follows
→ [2011-12-13 23:58:21.278] [C:\Users\balupton\AppData\Roaming\npm\node_mod
les\docpad\lib\docpad.coffee] [unknown]
warning: An error occured: Command failed: npm ERR! prefix directory not found
npm ERR! Error: ENOENT, no such file or directory 'C:\projects\test\plugins\tot
ldocuments\~\AppData\Roaming\npm'
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 "node" "C:\\Users\\balupton\\AppData\\Roaming\\npm\\node_modul
s\\docpad\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\projects\test\plugins\totaldocuments
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.0.106
npm ERR! path C:\projects\test\plugins\totaldocuments\~\AppData\Roaming\npm
npm ERR! code ENOENT
Error: Command failed: npm ERR! prefix directory not found
npm ERR! Error: ENOENT, no such file or directory 'C:\projects\test\plugins\tot
ldocuments\~\AppData\Roaming\npm'
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 "node" "C:\\Users\\balupton\\AppData\\Roaming\\npm\\node_modul
s\\docpad\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\projects\test\plugins\totaldocuments
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.0.106
npm ERR! path C:\projects\test\plugins\totaldocuments\~\AppData\Roaming\npm
npm ERR! code ENOENT
```

Appears to be due to https://github.com/balupton/docpad/commit/59926f09b3cc875690e4ab0bc48371c5db32bdae and https://github.com/balupton/docpad/commit/691b32adc35462f895d65c4fc6420d801094d941 changes for heroku support. Works fine on OSX.