简体   繁体   English

如果我不是节点程序,但我想使用Bower,我应该安装node和npm吗?

[英]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.

相关问题 我正在使用node.js并为学生开发协作工具,我想在我的节点项目中使用fabric js但是它不能正常工作 - I am using node.js and working on a collaborative tool for students and i want to use fabric js in my node project but it is not working 我们可以在 express js 中使用外部 npm 包并像我是 node js 的初学者一样对 js 做出反应吗? - Can we use external npm packages in express js and react js as i am beginner in node js? 我可以在没有Bower或NPM的情况下安装Angular Material库吗? - Can I install Angular Material library without Bower or NPM? 我应该在节点Sequelize中使用crateTable()还是sync()吗? - Should I use crateTable() or sync() in node Sequelize? Node/NPM:如果我升级我的节点版本,我应该重建包锁定文件吗? - Node/NPM: If I upgrade my node version, should I rebuild the package-lock file? 我正在尝试在我的 windows PC 上安装节点 - I am trying to install node in my windows PC 现在我正在使用节点最新版本(17.4.0)“npm install node sass”命令,同时使用这些错误产生的反应。 如何解决? - Now i am using node latest version (17.4.0) "npm install node sass" command while using to react it these error produced. how to be resolved? 我想安装 npm 但它会出错 - i want install npm but it will give error NPM:我应该使用依赖项之一的依赖项,还是应该在根级别将其明确安装到项目中? - NPM: should I use one of my dependencies' dependencies, or should I explicitly install it into the project at the root level? 我应该什么时候开始和结束我的 node.js SQL 连接,我应该只使用来自 get go 的池吗? - When am I supposed to start and end my node.js SQL connection and should I just use pooling from the get go?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM