Skip to content

Instantly share code, notes, and snippets.

@scottrudy
Created November 2, 2016 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottrudy/a658ce88b66f035ff9cbce7831f8ebde to your computer and use it in GitHub Desktop.
Save scottrudy/a658ce88b66f035ff9cbce7831f8ebde to your computer and use it in GitHub Desktop.
Error when trying to search in npm
> type npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\scrudy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'search',
1 verbose cli 'angular' ]
2 info using npm@3.10.9
3 info using node@v6.9.1
4 verbose config Skipping project config: C:\Users\scrudy/.npmrc. (matches userconfig)
5 silly mapToRegistry name -/all
6 silly mapToRegistry using default registry
7 silly mapToRegistry registry https://registry.npmjs.org/
8 silly mapToRegistry data Result {
8 silly mapToRegistry raw: '-/all',
8 silly mapToRegistry scope: null,
8 silly mapToRegistry escapedName: null,
8 silly mapToRegistry name: null,
8 silly mapToRegistry rawSpec: '-/all',
8 silly mapToRegistry spec: '-/all',
8 silly mapToRegistry type: 'local' }
9 silly mapToRegistry uri https://registry.npmjs.org/-/all
10 info updateIndex C:\Users\scrudy\AppData\Roaming\npm-cache\registry.npmjs.org\-\all\.cache.json
11 verbose correctMkdir C:\Users\scrudy\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
12 verbose stack TypeError: Cannot read property '_updated' of undefined
12 verbose stack at C:\Users\scrudy\AppData\Roaming\npm\node_modules\npm\lib\cache\update-index.js:61:26
12 verbose stack at C:\Users\scrudy\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:241:18
12 verbose stack at FSReqWrap.oncomplete (fs.js:123:15)
13 verbose cwd C:\Users\scrudy
14 error Windows_NT 10.0.14393
15 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\scrudy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "search" "angular"
16 error node v6.9.1
17 error npm v3.10.9
18 error Cannot read property '_updated' of undefined
19 error If you need help, you may report this error at:
19 error <https://github.com/npm/npm/issues>
20 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment