[英]Regarding node.js and npm libraries portability
If I write a Javascript code using node.js and libraries installed with npm (eg xlsx-populate), will I be able to run the code on a different computer which has none of them installed?如果我使用 node.js 和安装了 npm 的库(例如 xlsx-populate)编写 Javascript 代码,我能在没有安装它们的其他计算机上运行代码吗?
Thanks谢谢
Every time you install a package using npm, it will be added into the package.json
.每次使用 npm 安装 package 时,都会被添加到package.json
中。 Then the next time if you want to run in other machine, just need tu run the npm install
然后下次如果你想在其他机器上运行,只需运行npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.