Home: Cannot install packages in Node.js project - Project "Default" is not found

Created on 22 Feb 2016  路  7Comments  路  Source: NuGet/Home

_From @chojrak11 on February 21, 2016 22:53_

I have Visual Studio 2015 Update 1, with Node.js Tools for Visual Studio v1.1. Everything up to date.
I have a single Node.js project in a solution. The project was created from template "Blank Node.js Web Application." I cannot install any package through Package Management Console. I need for example AngularJS.Intellisense. No luck. The message is: 'Project "Default" is not found.'
In fact, the "Default Project" drop down in PMC is empty and I cannot select anything (the list is empty as well). How can I install this AngularJS.Intellisense package in my project?

_Copied from original issue: NuGet/NuGetGallery#2898_

Icebox VS.PMConsole Bug help wanted

Most helpful comment

@zhili1208 @yishaigalatzer then maybe just please add a proper warning to NuGet when it encounters these unsupported project types, rather than obscure "No Default project" confusing stuff.

All 7 comments

  1. Can you try saving your project and solution first?
  2. This may be solved in 3.4 (to be released with Update II), otherwise we don't plan to invest in node.js projects in one of the immediate releases.
  1. Of course the solution is saved.
  2. I think it's just a kind of filter that prevents a Node.js project to be included in the drop down in Packet Management Console and selected as the default. No major work IMO to fix this feature.

Installed Node.js tools for visual studio, try to open UI, got "this project is unsupported". I don't think nuget support node.js project, npm is the right solution for package management for node.js project.

Thanks @zhili1208 for investigating.

If someone from the Node.JS team is interested in building this feature in NuGet we will take a pull request. I can't see why would someone use javascript packages from NuGet for this kind of project, but I could see someone using msbuild targets and the like.

Node Tools dev here - we also have an issue open from our end on this and haven't seen sufficient reason to prioritize NuGet support. Of course, we wouldn't _oppose_ someone making a PR on NuGet :stuck_out_tongue_winking_eye:
https://github.com/Microsoft/nodejstools/issues/326

@zhili1208 @yishaigalatzer then maybe just please add a proper warning to NuGet when it encounters these unsupported project types, rather than obscure "No Default project" confusing stuff.

Can we follow up on the state of this for RTM?

Was this page helpful?
0 / 5 - 0 ratings