bower

Cannot find module 'internal/fs' after upgrading to node 7

杀马特。学长 韩版系。学妹 提交于 2019-12-17 23:04:30
问题 We've recently tried to upgrade to node v7.0.0 on our build server, but started to have issues during the application build task failing on the "bower_concat" step: Loading "bower-concat.js" tasks...ERROR Error: Cannot find module 'internal/fs' What we have installed: node v7.0.0 (installed via yum "nodesource" repository) npm 4.0.1 using grunt (if this is relevant) grunt-bower-concat 0.6.0 The grunt build task configuration: grunt.registerTask( 'build:prod', [ 'clean:prod', 'copy:prod',

EMALFORMED error when trying to register bower.json file

痴心易碎 提交于 2019-12-17 21:03:10
问题 I'm having trouble registering my bower.json file at Bower. Any help would be greatly appreciated. When I try to register my project at Bower using bower register jsnlog git://github.com/mperdeck/jsnlog.js.git -V I get the error message: bower jsnlog#* EMALFORMED Failed to read C:\Users\mperdeck\AppData\Local\Temp\mperdeck-PC-mperdeck\bower\js nlog-6944-x00dtF\bower.json Additional error details: Unexpected token ? The contents of my bower.json is simply (I got rid of spaces and newlines in

Bower and devDependencies vs dependencies

假装没事ソ 提交于 2019-12-17 14:59:32
问题 I ran 'yo angular' and realized afterwards that it installs 1.0.8, I uninstalled the angular components, however the original bower.json file had angular-mocks and angular-scenario under 'devDependencies' when I re-add all the 1.2.0-rc.2 components angular-mocks and angular-scenario under dependencies instead of devDependencies. I'm curious as to how devDependencies is used and if I should bother manually fixing it or leave as is. Is there a way to specify on the bower CLI how to mark

How to register a local git package in Bower?

回眸只為那壹抹淺笑 提交于 2019-12-17 10:16:00
问题 How can I register a local git package in bower? My current component.json is as follows { "name": "myproject", "version": "1.0.0", "dependencies": { "jquery": "1.8.0", "twitter/bootstrap": "2.1.1" } } However I also would like to add a package I have created at C:/mypackage which is a git repository with versions tagged. When I do bower install --save C:/mypackage it properly adds it to project but it doesn't add it to my component.json. I am trying bower register mypackage C:/mypackage but

Bower: Install 2 versions of jQuery

ε祈祈猫儿з 提交于 2019-12-17 10:11:52
问题 How would I go about installing 2 versions of jQuery using bower ? I want to have v2.0 as well as 1.9.1 for browser support fallback The issue I'm having is that if you run bower install jquery#1.9.1 jquery#2.0.0 the first version gets overwritten by the second because they are the same component 回答1: In the dependencies part of your bower.json you can have something like this: "dependencies": { "jquery": "2.0.0", "jquery-1.9.1": "http://code.jquery.com/jquery-1.9.1.js" } One shouldn't

Grunt - 安装指南

家住魔仙堡 提交于 2019-12-17 09:03:03
发现周围有些人对前端存在偏见。 他们认为前端只是用没那么复杂的技术对着界面调来调去,一点点打磨,最后做出一个没什么实用价值的“花瓶”。 其实,前端的技术栈并不简单,比如我们可以用 Grunt 进行一些自动化操作。 这里简单记录下Grunt的安装,希望对大家有帮助。 Node.js 我们用到的很多组建都是依赖Node.js构建的,所以首先要安装Node.js。 安装Node.js几乎没什么难度,可以直接进Node.js的 官网 ,或者使用 brew , apt-get , yum 等进行安装。 安装结束后,执行一下命令,检查输出是否正确: $ node --version v0.12.7 npm 会跟着Node.js安装进来,我们需要经常执行 npm install 之类的操作。 所以如果之前没有解除过 npm ,你可能需要过一次 Getting Started 。 Grunt 进入Grunt的 官网 看到一头野猪,Grunt将自己定义为 Javascript Task Runner ,而我们通过Grunt执行的就是一个个 task 。 先install再说,注意是 grunt-cli npm install -g grunt-cli 看看是否成功安装 Ezra:~ Kavlez$ grunt --version grunt-cli v0.1.13 该怎么用起来呢?这里列出简单步骤。

Bower calls blocked by corporate proxy

谁说我不能喝 提交于 2019-12-17 08:10:53
问题 I'm trying to use Bower for a web app, but find myself hitting some sort of proxy issues: D:\>bower search jquery bower retry Request to https://bower.herokuapp.com/packages/search/jquery failed with ECONNRESET, retrying in 1.2s bower retry Request to https://bower.herokuapp.com/packages/search/jquery failed with ECONNRESET, retrying in 2.5s bower retry Request to https://bower.herokuapp.com/packages/search/jquery failed with ECONNRESET, retrying in 6.8s bower retry Request to https://bower

Recommended way to include bootstrap library in Ember.JS ember-cli App

心已入冬 提交于 2019-12-17 06:24:32
问题 I am trying to install properly Twitter Bootstrap in my current ember-cli project. I did install bootstrap with bower : bower install --save bootstrap Now the library is downloded in /vendor/bootstrap/dist/(css|js|fonts) I tried what is mentioned here : http://ember-cli.com/#managing-dependencies replacing path and css files names but I get errors regarding the Brocfile.js file. I think the brocfile format has changed too much compared to the example. I also tried to @import with the /app

Difference between Grunt, NPM and Bower ( package.json vs bower.json )

一个人想着一个人 提交于 2019-12-17 05:15:13
问题 I'm new to using npm and bower, building my first app in emberjs :). I do have a bit of experience with rails, so I'm familiar with the idea of files for listing dependencies (such as bundler Gemfile) Question: when I want to add a package (and check in the dependency into git), where does it belong - into package.json or into bower.json ? From what I gather, running bower install will fetch the package and put it in /vendor directory, running npm install it will fetch it and put it into

What is the bower (and npm) version syntax?

橙三吉。 提交于 2019-12-17 03:44:51
问题 Bower enables me to specify version requirements for packages using the following syntax: "dependencies": { "<name>": "<version>", }, But I have not been able to find what is the syntax to use for the <version> . I know that I can specify versions to be: greater than a certain version with ">1.0.0" greater than or equal to a version: ">=1.0.0" or in some range: "1.0.0 - 2.0.0" . I also know that there is a common version syntax containing the tilde: "~1.0.0" . But I am not sure what it means