Installing natural package in a meteor application

前端 未结 1 1717
再見小時候
再見小時候 2021-01-25 16:39

For having natural language processing facility. Have added natural node package in my application using \"npm install natural\". But after installation while running the applic

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-25 17:33

    To use NPM packages within your meteor application you need to first install meteor-npm mrt add npm

    You then have to add a packages.json file at the root of your project like so;

    {
      "natural": "0.1.27"
    }
    

    When this file changes, meteor will automatically update its dependencies.

    You can then use var natural = Meteor.require("natural")

    0 讨论(0)
提交回复
热议问题