Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Commented Issue: NPM needs to detect errors when search failed [649]

$
0
0
Occasionally updating the search will not update the catalog. We need to detect when an error has occurred and inform the user.

We also need to only update the last updated time if we have successfully updated the catalog.

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'search' ]
2 info using npm@1.3.21
3 info using node@v0.10.24
4 verbose node symlink C:\Program Files (x86)\nodejs\\node.exe
5 warn Building the local index for the first time, please be patient
6 verbose url raw /-/all
7 verbose url resolving [ 'https://registry.npmjs.org/', './-/all' ]
8 verbose url resolved https://registry.npmjs.org/-/all
9 info trying registry request attempt 1 at 16:55:51
10 http GET https://registry.npmjs.org/-/all
11 http 200 https://registry.npmjs.org/-/all
12 error RangeError: Invalid array length
12 error at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:87:15
12 error at Array.forEach (native)
12 error at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:86:26
12 error at cb (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:27:9)
12 error at RegClient.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:122:16)
12 error at cb (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:158:9)
12 error at RegClient.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:306:12)
12 error at Request.self.callback (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\request.js:123:22)
12 error at Request.EventEmitter.emit (events.js:98:17)
12 error at Request.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\request.js:893:14)
13 error If you need help, you may report this *entire* log,
13 error including the npm and node versions, at:
13 error <http://github.com/isaacs/npm/issues>
14 error System Windows_NT 6.2.9200
15 error command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "search"
16 error cwd c:\projects\temp\ExpressApp3
17 error node -v v0.10.24
18 error npm -v 1.3.21
19 error type invalid_array_length
20 verbose exit [ 1, true ]

Comments: Errors in catalog refresh now appear in the output pane as of https://nodejstools.codeplex.com/SourceControl/network/forks/BartRead/rgnpm01/changeset/a32e05e0e878b526b5fe787198c2d10ef32a26fa. Resolving.

Viewing all articles
Browse latest Browse all 4630

Trending Articles