VS Info Message: "Package restore on project open is disabled. Change the npm package management settings in Project Properties ..."

Visual StudioNpmVisual Studio-2019Visual Studio-2022

Visual Studio Problem Overview


VS 2019 throws this info message: "Package restore on project open is disabled. Change the npm package management settings in Project Properties to enable restore on project open."

enter image description here

But I can't find any specific checkbox or "npm properties tab" in project's properties for this. Could you give me some details on it?

Visual Studio Solutions


Solution 1 - Visual Studio

In Visual Studio 2019 (and 2022), you can find this global setting in:

Tools > Options > Projects and Solutions > Web Package Management > Package Restore

We have not yet found this setting in Project Properties.

Solution 2 - Visual Studio

Just found it!!! If it helps anyone in the future

img

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRoman PokrovskijView Question on Stackoverflow
Solution 1 - Visual StudioKurtbabyView Answer on Stackoverflow
Solution 2 - Visual StudioFilipe RevezView Answer on Stackoverflow