admin管理员组文章数量:1023848
Is it possible to run a JavaScript file with node.js on windows? I have been trying to for hours and can't find any more solutions on the internet that work.
I have a js-file that uses scribbletune which only works with node.js. I have node.js installed and I installed gitbash because it was remended in a forum. I tried to run from mand prompt and gitbash but nothing seems to happen. What am I doing wrong? Any help would be very much appreciated.
Is it possible to run a JavaScript file with node.js on windows? I have been trying to for hours and can't find any more solutions on the internet that work.
I have a js-file that uses scribbletune which only works with node.js. I have node.js installed and I installed gitbash because it was remended in a forum. I tried to run from mand prompt and gitbash but nothing seems to happen. What am I doing wrong? Any help would be very much appreciated.
Share Improve this question edited Aug 25, 2017 at 9:15 Clíodhna 8181 gold badge15 silver badges30 bronze badges asked Aug 25, 2017 at 8:48 bloodbasserbloodbasser 131 gold badge1 silver badge3 bronze badges2 Answers
Reset to default 2There is no need to install gitbash to use Node on Windows. It's a handy thing to have if you're used to a *nix environment. If you're not, it just gives you something more to learn, which isn't helpful if you're already in the middle of trying to learn Node.
Just:
Get the Windows installer from https://nodejs/en/download/
Run the Windows installer
Create a directory for your project
Open a Command Prompt Window to get a mand line
Switch to your project directory
(Optional, but a good idea) Use
npm init
to create apackage.json
file (it'll walk you through it)Install any libs you're going to be using via
npm
(for instance,npm install scribbletune
from your mand prompt window)Put your JavaScript files in that directory
Use
node main.js
at the mand line to run your main file (whatever it's called;main.js
is just a placeholder)
Inorder to run a js (java script file) file
step 1. u need to go to the file location where u want to run.
step 2. just use "shift +right click". u will see a pop-up and go to powershell or cmd.
step 3. type "node FILENAME.js"
final step: you will see the result ^.^
Is it possible to run a JavaScript file with node.js on windows? I have been trying to for hours and can't find any more solutions on the internet that work.
I have a js-file that uses scribbletune which only works with node.js. I have node.js installed and I installed gitbash because it was remended in a forum. I tried to run from mand prompt and gitbash but nothing seems to happen. What am I doing wrong? Any help would be very much appreciated.
Is it possible to run a JavaScript file with node.js on windows? I have been trying to for hours and can't find any more solutions on the internet that work.
I have a js-file that uses scribbletune which only works with node.js. I have node.js installed and I installed gitbash because it was remended in a forum. I tried to run from mand prompt and gitbash but nothing seems to happen. What am I doing wrong? Any help would be very much appreciated.
Share Improve this question edited Aug 25, 2017 at 9:15 Clíodhna 8181 gold badge15 silver badges30 bronze badges asked Aug 25, 2017 at 8:48 bloodbasserbloodbasser 131 gold badge1 silver badge3 bronze badges2 Answers
Reset to default 2There is no need to install gitbash to use Node on Windows. It's a handy thing to have if you're used to a *nix environment. If you're not, it just gives you something more to learn, which isn't helpful if you're already in the middle of trying to learn Node.
Just:
Get the Windows installer from https://nodejs/en/download/
Run the Windows installer
Create a directory for your project
Open a Command Prompt Window to get a mand line
Switch to your project directory
(Optional, but a good idea) Use
npm init
to create apackage.json
file (it'll walk you through it)Install any libs you're going to be using via
npm
(for instance,npm install scribbletune
from your mand prompt window)Put your JavaScript files in that directory
Use
node main.js
at the mand line to run your main file (whatever it's called;main.js
is just a placeholder)
Inorder to run a js (java script file) file
step 1. u need to go to the file location where u want to run.
step 2. just use "shift +right click". u will see a pop-up and go to powershell or cmd.
step 3. type "node FILENAME.js"
final step: you will see the result ^.^
本文标签: How to Run JavaScript file with nodejs on windows (scribbletune)Stack Overflow
版权声明:本文标题:How to Run JavaScript file with node.js on windows (scribbletune) - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745545454a2155372.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论