isaacs/npm — Issue #2190: NPM on windows x64 server hangs if user doesn't have right permissions
Author: davidfowl
Created: 2012-02-22 19:36:27+00:00
State: open

Running npm within in a simple web application that doesn't have access to `C:\Windows\SysWOW64\config` causes npm to hang. Running any command that tries to read from/write to the npm config will cause npm to go into an infinite loop.

Here's the dump from procmon (http://technet.microsoft.com/en-us/sysinternals/bb896645)

11:35:22.3546154 AM	node.exe	7660	CreateFile	C:\Windows\SysWOW64\config	NAME COLLISION	Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0
11:35:22.3546181 AM	node.exe	5572	CreateFile	C:\Windows\SysWOW64\config	NAME COLLISION	Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0
11:35:22.3547417 AM	node.exe	7396	CreateFile	C:\Windows\SysWOW64\config	ACCESS DENIED	Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:35:22.3547775 AM	node.exe	7300	CreateFile	C:\Windows\SysWOW64\config	ACCESS DENIED	Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:35:22.3550420 AM	node.exe	4084	CreateFile	C:\Windows\SysWOW64\config	NAME COLLISION	Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0
11:35:22.3551783 AM	node.exe	7300	CreateFile	C:\Windows\SysWOW64\config	NAME COLLISION	Desired Access: Read Data/List Directory, Synchronize, Disposition: Create, Options: Directory, Synchronous IO Non-Alert, Open Reparse Point, Attributes: N, ShareMode: Read, Write, AllocationSize: 0
11:35:22.3552873 AM	node.exe	5572	CreateFile	C:\Windows\SysWOW64\config	ACCESS DENIED	Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:35:22.3553993 AM	node.exe	7660	CreateFile	C:\Windows\SysWOW64\config	ACCESS DENIED	Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
11:35:22.3556542 AM	node.exe	7300	CreateFile	C:\Windows\SysWOW64\config	ACCESS DENIED	Desired Access: Read Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a