Smriti Mittal
Smriti Mittal

Reputation: 125

Why don't I need to install JS before installing npm?

Why don't I need to install Javascript before being able to install + use npm, just like I need to install Java before being able to install/use Maven?

Upvotes: 0

Views: 161

Answers (2)

nmodi
nmodi

Reputation: 75

Installing Nodejs is the equivalent because Nodejs includes the V8 Engine under the hood, which reads and interprets the js code you write. Maven only handles dependencies.

Upvotes: 2

You have terminology mixed up. NodeJS isn't a package manager or build tool. It's a runtime for JavaScript. If you want to compare NodeJS to a Java equivalent, compare it to the JRE or JDK, not to Maven.

Upvotes: 2

Related Questions