[英]Should i install node and npm if i am not a node programme but i want to use bower?
Im a java programmer currently working on a java webapp. 我是目前在Java Web应用程序上工作的Java程序员。 Managing javascript can be quite painful.
管理javascript可能会很痛苦。
Recently i came across this js dependency manager bower. 最近,我遇到了这个js依赖管理器Bower。 However it requires both node and npm to be installed.
但是,它需要同时安装节点和npm。
1) Just wondering if there are side effects to installing node. 1)只是想知道安装节点是否有副作用。 For example cpu and memory usage.
例如cpu和内存使用情况。 And are there upsides to it other than bower?
除了凉亭,还有其他好处吗?
2) Is there a way i can turn off the node service when im not using it. 2)有一种方法可以在我不使用时关闭节点服务。
3) In addition, been looking around and cant seem to find a bower like solution that runs natively on windows 3)此外,一直到处走走,似乎无法找到像Bower这样的解决方案,该解决方案可以在Windows上本地运行
Bower is now considered as an obsolete package manager, and the general advice is to use npm package registry (which is by default in npm). Bower现在被认为是过时的软件包管理器,并且一般的建议是使用npm软件包注册表(npm中默认为)。 I don't even think that there are packages which are bower exclusively.
我什至不认为有些软件包是排他性的。 There are different package managers, but they use npm registry too (like yarn, for instance).
有不同的程序包管理器,但它们也使用npm注册表(例如,yarn)。
Regarding your questions: 关于您的问题:
1) No, there are no side effects, except your disk space. 1)不,除了磁盘空间外,没有副作用。 Node is not a demon, it is just an application to run javascript code – so if you don't start it, it doesn't consume anything (of course, installing some npm dependency uses node under the hood).
Node不是恶魔,它只是运行javascript代码的应用程序-因此,如果您不启动它,它就不会消耗任何东西(当然,安装一些npm依赖项会在后台使用node)。
2) No need to. 2)没有必要。
3) Almost all package managers (including bower) work on Windows good. 3)几乎所有程序包管理器(包括Bower)在Windows上都可以正常工作。 Actually, almost all JS ecosystem now works quite good and stable on Windows.
实际上,现在几乎所有的JS生态系统在Windows上都可以正常运行并保持稳定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.