javascript - What is the relationship between weex and node and js?
PHPz2017-05-16 13:31:36
0
1
650
I am a newbie. I have been learning weex for a while and don’t know much about node.js. I don’t know what the relationship between these two is, or is it actually not related, but weex needs to use npm for package management? Again, I’m a newbie.
weex is built based on the back-end service node.js framework, that is, both weex and nodejs have v8 engines, and js code can be run in them. As for when you use npm to manage weex packages, you need nodejs, because npm comes with nodejs and needs to run on nodejs, which means that in order to install weex, you need nodejs.
Obviously, the v8 in the picture below is the common part with nodejs, both of which come with a v8 engine as the runtime of js.
weex is built based on the back-end service node.js framework, that is, both weex and nodejs have v8 engines, and js code can be run in them.
As for when you use npm to manage weex packages, you need nodejs, because npm comes with nodejs and needs to run on nodejs, which means that in order to install weex, you need nodejs.
Obviously, the v8 in the picture below is the common part with nodejs, both of which come with a v8 engine as the runtime of js.