简体   繁体   English

在Meteor项目中使用自然的Node.js库

[英]Use natural nodejs library in Meteor project

I need to use natural ( https://github.com/NaturalNode/natural ), a nodejs library inside a Meteor project. 我需要使用Meteor项目中的一个nodejs库natural( https://github.com/NaturalNode/natural )。

If I install natural using npm inside my Meteor project, it throws a bunch of erros becouse certain aspects are incompatible: (Doctype HTML in html file headers, for example, which meteor doesn´t like much.) 如果我在Meteor项目中使用npm进行自然安装,由于某些方面不兼容,它会抛出很多错误:(例如html文件头中的doctype HTML,例如,流星不太喜欢)。

Can anyone teach me how to turn natural in an meteor package or just tell me how to solve this problem? 谁能教我如何在流星雨中变自然,或者只是告诉我如何解决这个问题?

Thanks, 谢谢,

Try this project . 试试这个项目 I haven't tried it myself, but there are likely some leads there. 我自己还没有尝试过,但是那里可能有一些线索。

Try this package in Atmosphere (a collection of Meteor packages) https://atmospherejs.com/package/natural 在Atmosphere(流星软件包的集合)中尝试此软件包https://atmospherejs.com/package/natural

To install packages from Atmosphere, You will need meteorite: 要从Atmosphere安装软件包,您将需要陨石:

npm install -g meteorite

install the package: 安装软件包:

mrt add natural

run your project 运行你的项目

mrt

Easy this time ;) Enjoy! 这次容易;)尽情享受!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM