Farax
Farax

Reputation: 1477

Cannot install NodeJS via NUGET

While trying to install Node.js via the Nuget package manager, I am getting the following error. No further information to tap into. Any idea what is happening there?

I tried changing the .NET framework version of the project but I still get the same issue.

A few other people on different forums have pointed out similar issues while installing nodejs via the package manager. Just want to make sure if this is known issue.

Could not install package nodejs-v.0.8.16 0.8.16. You are trying to install this package into a project that targets .NETFramework,Version=v4.5.2, but the package does not contain any assembly references or content files that are compatible with that framework.

For more information, contact the package author.

Upvotes: 1

Views: 3864

Answers (1)

Elmar
Elmar

Reputation: 1246

Reading your problem statement; I believe you're trying to run Node.js from a localized directory within your solution directory structure instead of installing node.js separately.

The official package from the Node.js Foundation - node.js (note the ".") - The Official node.js package is what you are likely after, you'll notice this indeed does work when executed against a 4.5.2+ project like the one you were testing against:

Install-Package Node.js

Note: The absolute oldest version you can install for this particular package against a 4.5.2 project is 0.10.26.1 from what I tested.


Side note:

What you were referencing is a substantially older package of "nodejs" (note the missing ".") from here which I checked out myself, it doesn't install irrespective of the framework version specified in project properties, also 0.8.16 is old.

Upvotes: 4

Related Questions