2013 Meteor NPM Packages

后端 未结 5 1042
青春惊慌失措
青春惊慌失措 2020-11-30 01:07

Update this solution describes how to effectively use the new Npm system in Meteor.


What is the current method of using NPM packages i

5条回答
  •  情书的邮戳
    2020-11-30 01:38

    You can use https://atmospherejs.com/meteorhacks/npm

    meteor add meteorhacks:npm
    

    And then you can setup your package.json file:

    {
      "redis": "0.8.2",
      "github": "0.1.8"
    }
    

    And use these packages:

    var GithubApi = Meteor.npmRequire('github');
    

提交回复
热议问题