最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is there a difference between npm install on windows & linux - Stack Overflow

programmeradmin4浏览0评论

i think i have a short question.

I can't find anything in the www. if i run npm install on a windows machine to install my dependencies. is it possible to move the node_module directory to a linux machine and run my nodejs script, or is npm checking before installing my os and choose other install path's?

greetings mok

i think i have a short question.

I can't find anything in the www. if i run npm install on a windows machine to install my dependencies. is it possible to move the node_module directory to a linux machine and run my nodejs script, or is npm checking before installing my os and choose other install path's?

greetings mok

Share Improve this question edited Aug 7, 2018 at 12:56 Dzenly 1,84113 silver badges19 bronze badges asked Aug 7, 2018 at 10:49 mok lieemok liee 2172 silver badges10 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 15

Yes, there can be differences, say, if you (or your dependencies) use native node.js addons, which are built e.g. by node-gyp and contain native binary code. Also there can be OS/CPU - specific stuff in package.json.

package.json description can be found here: https://docs.npmjs./files/package.json

发布评论

评论列表(0)

  1. 暂无评论