Node.js 在Ubuntu上安装依赖项时Bower挂起
我试图在Ubuntu 14.04上使用Bower安装一系列依赖项。安装挂起在半随机点(jQuery、闭包库或闭包编译器之一)。以下是版本以及bower.json(匿名) 节点v0.10.35Node.js 在Ubuntu上安装依赖项时Bower挂起,node.js,ubuntu,npm,bower,ubuntu-14.04,Node.js,Ubuntu,Npm,Bower,Ubuntu 14.04,我试图在Ubuntu 14.04上使用Bower安装一系列依赖项。安装挂起在半随机点(jQuery、闭包库或闭包编译器之一)。以下是版本以及bower.json(匿名) 节点v0.10.35 NPM v1.4.28 鲍尔v1.3.12 bower.json { "name": "redacted", "version": "0.12.2", "homepage": "redacted", "description": "redacted", "private": true,
NPM v1.4.28
鲍尔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安装的样本行
在挂起点处输出(如前所述,挂起的确切点每次都会发生变化,尽管大多数情况下它似乎发生在已解决的
上)
鲍尔撤退#v2已解决https://github.com/dolox/fallback.git#0568407bc2
如果没有npm debug.log
我无法明确诊断这一点,但它看起来确实像是困扰旧版本npm的一些安装错误/争用条件——2.1之前的版本
自1.4.28以来,npm有了很多改进,特别是在安装过程中的冲突和争用条件方面。您可以尝试更新您的npm安装吗
要更新npm,请运行npm-g安装npm@latest
对于某些Linux发行版(Debian/Ubuntu和RedHat/CentOS),发行版提供的最新节点版本可能落后于稳定版本。获取最新节点。在运行OSX Mountain Lion的主机Ubuntu VM(Ubuntu 14.04.1 LTS)上进行了复制(我无法复制该问题)。我刚刚尝试单独安装所有节点,似乎效果也不错。