Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Isn't there a way to install npm without Node.js? #12230

Closed
apple77y opened this issue Apr 6, 2016 · 5 comments
Closed

Isn't there a way to install npm without Node.js? #12230

apple77y opened this issue Apr 6, 2016 · 5 comments
Labels

Comments

@apple77y
Copy link

apple77y commented Apr 6, 2016

I'm trying to install npm without Node.js on my WAS.
Please tell me if there's a way.

@Rafi993
Copy link

Rafi993 commented Apr 6, 2016

As stated in this blog just download npm from here and configure the environment variable. Then your done.

@apple77y
Copy link
Author

apple77y commented Apr 6, 2016

@Rafi993 I checked the blog, but the step one was "Get Node.exe". I try to find the way to use npm without Node.js. I guess that it is impossible.. :(

@kenany
Copy link
Contributor

kenany commented Apr 6, 2016

npm is written in JavaScript. If you don't install Node.js, how will you run npm?

@othiym23
Copy link
Contributor

othiym23 commented Apr 6, 2016

As @kenany says, npm is an app written entirely in JavaScript and depends very heavily on Node.js APIs (and other pure-JavaScript packages that in turn depend on Node.js APIs). Because Node.js is a scripting platform running a dynamic language (just like Python, Ruby, or Perl), apps written atop it need to have access to the binary to run. Having Node installed is a prerequisite for that reason. Because this is how npm works, I'm going to close this issue. Thanks for your time!

@othiym23 othiym23 closed this as completed Apr 6, 2016
@apple77y
Copy link
Author

apple77y commented Apr 7, 2016

@kenany @othiym23 Now I realize why npm depends on Node.js. Got it! Thanx for your supporting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants