Where do we put node modules we install by npm in a Meteor project?

前端 未结 6 535
攒了一身酷
攒了一身酷 2020-12-08 03:33

I followed the github meteorirc project\'s lead and put them in /public/

I installed my node modules via npm from inside /public/ and therefore I have a /public/node

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 04:11

    I am using such script which nicely install all node.js dependencies. It behaves similar to official support in Meteor engine branch (it installs dependencies at runtime) but it supports also installing from git repositories and similar goodies.

提交回复
热议问题