简体   繁体   English

如何在 deno 中使用包管理器?

[英]How to use package manager with deno?

I recently got to know about Deno the alternative of NodeJS, I can't find an instruction to use yarn or npm with Deno.我最近了解了 Deno 作为 NodeJS 的替代品,我找不到在 Deno 中使用 yarn 或 npm 的说明。 Is there any way that yarn or npm can be used with Deno.有什么方法可以将 yarn 或 npm 与 Deno 一起使用。

Deno doesn't come with a package manager like npm or yarn, you'll have to load the 3rd party packages manually in a file normally called deps.ts. Deno 没有像 npm 或 yarn 这样的包管理器,您必须在通常称为 deps.ts 的文件中手动加载第 3 方包。 You can find more info here ( https://deno.land/manual/examples/manage_dependencies )您可以在此处找到更多信息( https://deno.land/manual/examples/manage_dependencies

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

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