I have very recently started using Webmatrix 3 and have a problem with the NPM Gallery not opening, please see error message I recieved when opening gallery.
An error occurred.
"C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "search" "/.*"
TypeError: Cannot read property 'length' of undefined
at C:\Program Files (x86)\nodejs\node_modules\npm\lib\search.js:177:18
at Array.forEach (native)
at C:\Program Files (x86)\nodejs\node_modules\npm\lib\search.js:176:7
at Array.map (native)
at prettify (C:\Program Files (x86)\nodejs\node_modules\npm\lib\search.js:162:6)
at C:\Program Files (x86)\nodejs\node_modules\npm\lib\search.js:54:17
at C:\Program Files (x86)\nodejs\node_modules\npm\lib\search.js:63:12
at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:89:14
at Object.oncomplete (fs.js:297:15)
If you need help, you may report this log at:
<http://github.com/isaacs/npm/issues>
or email it to:
<npm-@googlegroups.com>
Error: EPERM, open 'C:\Windows\system32\npm-debug.log'
{ [Error: EPERM, open 'C:\Windows\system32\npm-debug.log']
errno: 50,
code: 'EPERM',
path: 'C:\\Windows\\system32\\npm-debug.log' }
Please try running this command again as root/Administrator.
stack Error: EPERM, open 'C:\Windows\system32\npm-debug.log'
Failed: npm reported an error.
NodeNpm.NpmException: Failed: npm reported an error.
at NodeNpm.NpmApi.Search(String searchTerms)
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.FetchRemotePackages()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
If anyone can help it would be greatly appreciated.