简体   繁体   中英

Can NODE.JS be included and implemented universally?

I'm making a quiz, and I've been wanting to save my answers to a text file. I want to use "Node.js", and I'm worried about this: They only offer an installer to install Node.js on your computer. Since I'm not working with servers or anything like that, and I'm just a hobbyist creating a Quiz interface because the one provided by my school is absolute garbage, so the people I might first give this to may not have Node.js installed on their computer. I'm using node.js for editing text documents and saving to them from my website. Please do note that this is for a website, not a program.

Is there any way I can include node.js source code in same directory as my website, or elsewhere, and use it from there, so that people without node.js can also use it without having to install anything?

Thanks for any help!

This question was edited, because I hadn't asked a more clear question in the first place, and people thought I was using a server.(my mistake. Sorry.) I have edited this for people who are comfortable using a server or a hosting app.

You can ship standalone nodejs binary with your app. node.exe ( dist )

Then make your project and add your deps locally npm i xxx (without g flag) And ship node_modules directory also.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM