Tag: bower

使用NPM安装包会导致依赖性循环

基本信息: System: OS X 10.9.2 Npm version: 1.4.9 Node version: v0.10.28 Ruby Version : ruby ​2.1.1p76 ( 2/24/2014 Revision 45161 ) [ x86_64- darwin12.0 ] 发生什么事情是,当我运行npm install -g bower或者sudo nom install -g命令或者bower变成了一个有错误但未完成的循环时,执行回滚并重新启动(我猜)。 也恰好被设置为下载其他依赖,如karma , mocha , chai (我不知道是否会成为bower依赖关系),但问题不仅在于,而且恰巧试图安装任何依赖关系考试: yeoman , grunt等… 我试过下面的命令,但问题依然存在: npm cache clean npm cache clear 这是一个部分 – debug.log npm文件: 32016 verbose etag […]

无法安装Bower软件包

我有一个使用Visual Studio 2015 IDE开发的Cordova应用程序。 为了pipe理库和依赖,我尝试使用NuGet。 但看起来,NuGet无法pipe理客户端脚本,即CSS。 所以我探索了BOWER。 我使用命令npm installl -g bower安装了npm installl -g bower ,现在我可以访问所有Bower命令。 当我尝试添加jQuery和jQuery Mobile之类的依赖项时,它会尝试提取并失败。 它给出的错误是, PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.cmd" install –force-latest bower retry Request to https://bower.herokuapp.com/packages/jquery-mobile failed with ECONNRESET, retrying in 1.5s bower retry Request to […]

我如何更新node.js并在Travis CI中的python项目中安装grunt / bower?

我需要在安装我的项目时使用grunt。 我需要node.js> = 0.8。 但Travis CI中的python虚拟机的版本是0.6。 我尝试下载最后一个二进制文件并将其插入到PATH中,但是我无法正确导出variables,如果使用travis的env:参数更改它,则不会有PATH的其余部分。 如果我直接使用二进制文件( ./node-v0.10.22-linux-x64/bin/npm install … ),它会将它们安装在./node-v0.10.22-linux-x64/bin/ ,当我想要使用grunt,它会调用bower(任务之一),但是会失败。 (致命错误:无法执行git checkout e6f8a58dbce5858586564a1ba4543f122ef63225,退出代码#128)。 那么,什么是最好的解决scheme来更新node.js并安装我需要在Travis CI中使用它们的二进制文件?

bower安装后缺lessbower_components文件夹

在个人项目中,我跑了今天早上npm install && bower install svn结帐后。 所有的软件包似乎都下载并没有错误地安装,所有的火灾都是绿色的。 但安装后, bower_components文件夹仍然丢失。 我testing了一个bower cache clean但没有效果。 此外,我更新了我的凉亭版本# npm -g update bower ,但它没有更多的影响。 任何想法 ? 这里是凉亭安装输出: bower exifreader#* not-cached git://github.com/mattiasw/ExifReader.git#* bower exifreader#* resolve git://github.com/mattiasw/ExifReader.git#* bower geolocationmarker#* not-cached git://github.com/shahariaazam/geolocationmarker.git#* bower geolocationmarker#* resolve git://github.com/shahariaazam/geolocationmarker.git#* bower angular#1.2.27 cached git://github.com/angular/bower-angular.git#1.2.27 bower angular#1.2.27 validate 1.2.27 against git://github.com/angular/bower-angular.git#1.2.27 bower cryptojslib#~3.1.2 cached git://github.com/sytelus/CryptoJS.git#3.1.2 bower cryptojslib#~3.1.2 validate 3.1.2 […]

Bower问题:未创buildbower_components

我在我的项目根目录中创build了一个bower.json文件,但是当我运行: $ bower install 我得到以下输出: bower not-cached https://github.com/mirceasinteanu/nanoScrollerJS.git#master bower resolve https://github.com/mirceasinteanu/nanoScrollerJS.git#master bower not-cached http://jamesallardice.github.io/Placeholders.js#* bower resolve http://jamesallardice.github.io/Placeholders.js#* bower download http://jamesallardice.github.io/Placeholders.js bower cached http://github.com/davatron5000/FitVids.js.git#1.1.0 bower validate 1.1.0 against http://github.com/davatron5000/FitVids.js.git#* bower cached git://github.com/jquery/jquery.git#1.10.2 bower validate 1.10.2 against git://github.com/jquery/jquery.git#~1.10.0 bower cached git://github.com/gfranko/jquery.selectBoxIt.js.git#3.8.1 bower validate 3.8.1 against git://github.com/gfranko/jquery.selectBoxIt.js.git#* bower cached git://github.com/chrisabrams/commonjs.git#0.2.0 bower validate 0.2.0 against git://github.com/chrisabrams/commonjs.git#0.2.0 bower cached git://github.com/components/jqueryui.git#1.11.2 […]

我可以在Heroku上使用Bower和Rails,并且仍然保持Gower的bower_components目录不变?

我刚开始使用bower来pipe理客户端依赖项。 我已经将Bower设置为将所有文件安装到/vendor/assets/components 。 然后运行bower install来评估bower.json文件并安装所有依赖项 #/bower.json { "name": "My-App", "dependencies": { "angular": "1.0.8", "bootstrap": "3.0.0" } } 最后,按照我读过的教程的指示,我已经从GIT中删除了组件目录。 #.gitignore #… # Ignore all stuff manged by bower /vendor/assets/components 因此,该项目不包括这些资产中的任何资产,并需要bower install运行以安装它们。 这对我来说似乎是合情合理的,就像将实际gem与项目脱钩是明智的一样。 它也遵守12因子应用程序的原则,并明确声明和隔离依赖关系 。 但是,排除依赖性会导致资产编译呛… 但是,当我推到Heroku时,资产预编译失败,因为还没有添加配套,所以当链轮试图评估: #application.css.scss /* … *= require bootstrap/dist/css/bootstrap *= require_self *= require_tree . */ 它发现在bootstrap/dist/css/bootstrap中找不到任何东西,因为bower还没有安装任何东西。 一个可能的解决scheme – 使用package.json来运行安装后的脚本 我已经按照这个教程build议添加一个package.json文件,内容如下: "dependencies": { "bower": […]

Bower未能在Azure上部署

我正在使用Azure部署Node.js Web应用程序。 我已经把Github作为我的部署库,并且像Jay Harris的网页中提到的那样设置了deploy.sh:http://www.cptloadtest.com/2013/12/03/Git-And-Grunt-Deploy-To- Windows的Azure.aspx 我的应用程序依赖于bower,但是当它试图部署时,我得到一个bower失败的错误。 以下是Azure日志的输出: npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/amdefine C:\DWASFiles\Sites\videogelpub\AppData\npm\bower -> C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower\bin\bower bower@1.3.1 C:\DWASFiles\Sites\videogelpub\AppData\npm\node_modules\bower ├── is-root@0.1.0 ├── junk@0.2.2 error: could not lock config file d:/home/.gitconfig: Permission denied ├── stringify-object@0.2.0 ├── abbrev@1.0.4 ├── chmodr@0.1.0 ├── which@1.0.5 ├── osenv@0.0.3 ├── archy@0.0.2 ├── graceful-fs@2.0.3 ├── rimraf@2.2.6 ├── open@0.0.4 ├── bower-endpoint-parser@0.2.1 ├── lru-cache@2.5.0 […]

鲍尔风帆 – 我错过了什么?

我一直在努力,并会感谢您可以提供任何帮助。 我有一个全新的风帆安装,并已configuration它使用手柄。 它举起精美。 我已经安装了使用 npm i sails-generate-bower 过了一会儿 bower install bootstrap –save 我可以看到它已经生成了核心引导文件 /bower_components //the root of my project 现在我该怎么做,以确保在升降机我有正确的地方Bootstrap文件?

凉亭和咕噜声全球或本地?

我们有nvm不要在全球范围内安装任何东西,因为我们可能同时在许多不同的项目上工作,需要同一个库的不同版本。 但是,凉亭和咕噜声呢? 在互联网上的任何地方,我npm install -g bower看到npm install -g bower我知道前段时间的咕噜声已经分解成了让全局包更加稳定的咕噜声和咕噜声。 但是,凉亭呢? 使用这些软件包的最佳做法是什么? 如何避免潜在的版本冲突? 或者,也许我夸大了这个问题,我应该简单地使用-g选项?

yeomanangular发电机不会开始咕噜发球

当我与yeoman设置angular度发生器时,我做了咕噜服务后得到这个错误 module.js:340 throw err; ^ Error: Cannot find module './lexer' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/www/angMaps/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js:10:10) at Object.<anonymous> (/var/www/angMaps/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js:167:4) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)