3

Is it possible to run a nodejs script using the atom nodejs installation?

For instance I run a script using a command line such:

node r.js -o build.js

I would like to know if there is a way to do the same without having a separate nodejs installation.

5
  • I don't understand what you mean by "separate installation". Could you clarify a little ? Commented Dec 20, 2018 at 17:15
  • For what I understand atom is based on nodejs. So is it possible to run nodejs script using the atom nodejs if I dont have nodejs installed? Commented Dec 20, 2018 at 17:17
  • Sure atom is powered by nodejs, but I always thought it was the same as the one you use to run your script. Commented Dec 20, 2018 at 17:23
  • No atom have its own nodejs installation. For instance it's node v8.9.3 that is used by atom 1.33.1. Commented Dec 20, 2018 at 17:25
  • You're right. Atom is made with electron which has its own nodejs fork. Commented Dec 20, 2018 at 17:47

1 Answer 1

1

Atom is based on Electron which integrates it's own Node.js application. You can launch your script with the Node.js engine built into Atom by pointing directly at it.

For exemple on Linux, you can do:

$ /usr/share/atom/resources/app/apm/bin/node r.js -o build.js
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.