gpt4 book ai didi

node.js - 在 Ubuntu 上安装依赖项时 Bower 挂起

转载 作者:搜寻专家 更新时间:2023-11-01 00:07:52 24 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 14.04 上使用 Bower 安装一堆依赖项。安装卡在半随机点(jQuery、闭包库或闭包编译器之一)。版本如下,连同 bower.json(匿名)。

Node v0.10.35
NPM v1.4.28
Bower v1.3.12

bower.json

{
"name": "redacted",
"version": "0.12.2",
"homepage": "redacted",
"description": "redacted",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components"
],
"dependencies": {
"angular": "~1.3.0",
"angular-ui-router": "~0.2.10",
"angular-cookie": "~4.0.6",
"bootstrap": "~3.2.0",
"angular-animate": "~1.3.0",
"signalr": "*",
"angular-translate": "~2.4.0",
"fallback": "https://github.com/dolox/fallback.git#v2",
"angularjs-scroll-glue": "~0.0.1",
"angular-swfobject": "~1.0.2",
"swfobject": "*",
"angular-moment": "~0.8.3",
"momentjs": "~2.8.3",
"moment-timezone": "~0.2.2",
"angular-uuid4": "~0.2.0",
"font-awesome": "~4.2.0",
"angular-strap": "~2.1.4",
"angular-motion": "~0.3.4",
"angularjs-toaster": "~0.4.9",
"angular-hotkeys": "https://github.com/chieffancypants/angular-hotkeys.git#1.4.5"
},
"devDependencies": {
"es5-shim": "~4.0.3",
"closure-compiler": "~0.2.6",
"closurelibrary": "*",
"closure-library-externs": "git@github.com:google/closure-compiler.git#v20140814",
"angular-mocks": "~1.3.0"
},
"resolutions": {
"angular": "~1.3.0"
}
}

谁能发现 bower.json 有什么问题,或者知道这些版本的 bower 和 Ubuntu 之间存在任何不兼容问题?

来自 bower install 的示例行在它挂起的地方输出(如前所述,它挂起的确切点每次都会改变,尽管它似乎发生在 resolved 大多数的时间)。


bower fallback#v2 解决了 https://github.com/dolox/fallback.git#0568407bc2

最佳答案

如果没有 npm-debug.log,我无法肯定地诊断出这一点,但它确实看起来像一些安装错误/竞争条件,它们曾经困扰过旧版本的 npm -- 2.1 之前.

自 1.4.28 以来,npm 有了很多改进——尤其是在安装期间的冲突和竞争条件方面。您可以尝试更新您的 npm 安装吗?

要更新 npm,请运行 npm -g install npm@latest

对于某些 Linux 发行版(Debian/Ubuntu 和 RedHat/CentOS),发行版提供的最新 Node 版本可能落后于稳定版。 Here are instructions from NodeSource关于获取最新 Node 。

关于node.js - 在 Ubuntu 上安装依赖项时 Bower 挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27783646/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com