isaacs/npm — Issue #1904: `npm install <x>` fails when run from LocalSystem account - no such file or directory C:\Windows\system32\config\systemprofile\AppData\Roaming\npm
Author: ScottWeinstein
Created: 2011-12-20 05:37:14+00:00
State: open

Using node 0.6.6 via the windows MSI, I'm trying to use npm on a TeamCity build - the agent is running use the the LocalSystem Account. Here's the error log

```
info it worked if it ends with ok
verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'install',
verbose cli 'uglify-js' ]
info using npm@1.1.0-beta-4
info using node@v0.6.6
verbose config file C:\Windows\system32\config\systemprofile\.npmrc
verbose config file C:\Program Files (x86)\nodejs\etc\npmrc
verbose config file C:\Program Files (x86)\nodejs\node_modules\npm\npmrc
ERR! prefix directory not found
ERR! Error: ENOENT, no such file or directory 'C:\Windows\system32\config\systemprofile\AppData\Roaming\npm'
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Windows_NT 6.0.6002
ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "uglify-js"
ERR! cwd C:\TeamCity\buildAgent\work\3249f442a1eff721
ERR! node -v v0.6.6
ERR! npm -v 1.1.0-beta-4
ERR! path C:\Windows\system32\config\systemprofile\AppData\Roaming\npm
ERR! code ENOENT
ERR! message ENOENT, no such file or directory 'C:\Windows\system32\config\systemprofile\AppData\Roaming\npm'
verbose exit [ 1, true ]
```