microsoft / microsoft/nodejstools

install new npm packages always corrupts database, can't find any packages

Open
#2,109 4 comments 0 reactions 1 assignee View on GitHub

@PranavSenthilnathan is already working on this.

Since Apr 5, 2019.

Dominant language
C#
Stars
1.8k
Forks
355
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

GUI for "Install New NPM Packages" shows results when searching for packages, such as react

Actual Behavior

no results are found, ever. in the "npm install output" window:

Registry url: https://registry.npmjs.org/
Database is corrupt - deleting C:\Users\adam\AppData\Local\Microsoft\Node.js Tools\NpmCache\packagecache.sqlite. Try refreshing the catalog again. Otherwise restart Visual Studio, and try again.
Deleting 267f21ef-baf3-4b5d-a516-31d02f27ed32
Current Time: 11/3/2018 8:27:31 PM
Last Refreshed: 11/3/2018 8:25:01 PM
Number of Results: 0
  • NTVS Version: 1.3.50201.08 (is this Node.js tools?)
  • Visual Studio Version: 15.0.0+26228.9
  • Node.js Version: 10.13.0 (the runtime, which must be downloaded separately, right?)
Steps to Reproduce
  1. freshly install visual studio
  2. create a blank node.js web application project
  3. right click npm
  4. click install new packages
  5. search for anything. (I did react)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.