Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent of "npm install" in NuGet?

Tags:

npm

nuget

In a Node.js project, I simply distribute a package.json file along with the rest of the source files and whoever wants to use this project simply runs

npm install

and all dependencies are downloaded and placed into node_modules directory.

In the world of NuGet, there is a packages.config file which seems roughly equivalent to the dependencies section of Node's package.json. When I open up cmd.exe or PowerShell, what is the command that would do the equivalent of npm install?

like image 864
Borek Bernard Avatar asked Oct 16 '12 22:10

Borek Bernard


People also ask

Is NuGet the same as npm?

NuGet is one of several package managers, like Node Package Manager (NPM) for JavaScript and Maven for Java. Package Managers simplify and automate library consumption. For example, if you need a library to implement JavaScript Object Notation (JSON) capabilities in your .

Is NuGet better than npm?

According to the StackShare community, npm has a broader approval, being mentioned in 2644 company stacks & 2670 developers stacks; compared to NuGet, which is listed in 12 company stacks and 15 developer stacks.

Is Yarn install same as npm install?

Speed and Performance. As mentioned above, while NPM installs dependency packages sequentially, Yarn installs in-parallel. Because of this, Yarn performs faster than NPM when installing larger files. Both tools also offer the option of saving dependency files in the offline cache.

Can I use npm in Visual Studio?

Visual Studio makes it easy to interact with npm and issue npm commands through the UI or directly. If you're unfamiliar with npm and want to learn more, go to the npm documentation. Visual Studio integration with npm is different depending on your project type. npm expects the node_modules folder and package.


1 Answers

nuget install packages.config

and get NuGet.exe Command Line

like image 62
kabaros Avatar answered Oct 13 '22 01:10

kabaros