bower

Windows环境下的NodeJS+NPM+Bower安装配置步骤

时光怂恿深爱的人放手 提交于 2019-12-01 11:45:57
  Windows下的NodeJS安装是比较方便的(v0.6.0版本之后,支持windows native),只需要登陆官网(http://nodejs.org/),便可以看到首页的“INSTALL”按钮,直接点击就会自动下载安装。安装过程基本直接“NEXT”就可以了。(Windows的安装msi文件在过程中会直接添加path的系统变量,变量值是你的安装路径,例如“C:\Program Files\nodejs”,我这里的演示是安装在 “D:\Program Files\nodejs” )   废话不多说,安装完成之后,我们先检测下 NodeJS是否安装成功,cmd命令行中键入: node -v   若出现版本提示,就说明安装成功了,如下图:      npm的安装。由于新版的NodeJS已经集成了npm,所以之前npm也一并安装好了。同样可以使用cmd命令行中键入: npm -v   同样, 若出现版本提示,就说明安装成功了,如下图:      这样, 常规NodeJS的搭建到现在为止已经完成了,迫不及待的话你可以在cmd命令行中键入“node”进入node开发模式下,输入你的NodeJS第一句:”hello world“ - 输入:console.log('hello world')。这里就不再多作演示了。    npm作为一个NodeJS的模块管理

Foundation5 with Compass and Assetic in Symfony2

两盒软妹~` 提交于 2019-12-01 07:39:04
I want to config Foundation5 with Compass and Assetic in Symfony2, I have installed foundation as they say at http://foundation.zurb.com/docs/sass.html : npm install -g bower grunt-cli gem install foundation In config.yml have configured in this way : # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false filters: compass: require: ['zurb-foundation'] apply_to: ".(scss|sass)$" Then I have imported in a base SCSS file @import "foundation"; but when I run : php app/console assetic:dump I have the following error : [Assetic\Exception\FilterException] An error occurred while

ASP.NET MVC, AngularJS, Bower and deploying site folder structure

怎甘沉沦 提交于 2019-12-01 06:51:37
I've read a lot of articles and questions about site folder structure (develop & deploy) and still have missunderstood about questions below. I marked my current folder structure: Orange- looks like lib or vendor folder, where i'd like to store independent components; Blue- folder contains my own, relative to current project (application) files; Green- ready to deploy folder, that contains minified & concated files, which used to be included in index.html. There are a few questions i'd like to find an answer: Is it correct, that the best practise is deploying to web server only dist folder?

Foundation5 with Compass and Assetic in Symfony2

十年热恋 提交于 2019-12-01 04:46:50
问题 I want to config Foundation5 with Compass and Assetic in Symfony2, I have installed foundation as they say at http://foundation.zurb.com/docs/sass.html : npm install -g bower grunt-cli gem install foundation In config.yml have configured in this way : # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false filters: compass: require: ['zurb-foundation'] apply_to: ".(scss|sass)$" Then I have imported in a base SCSS file @import "foundation"; but when I run : php app/console

How to resolve bower issue: “ENORESTARGET Tag/branch master does not exist”

谁说胖子不能爱 提交于 2019-12-01 03:33:36
I cannot seem to get bower working on my current project. The project began as a yeoman 'angular' app a couple weeks ago, and now cannot remember exactly what I did, nor can I determine how to fix it. I do not have a bower_components directory, and have deleted and re-created bower.js several times. bower.json { "name": "my_name", "version": "0.0.0", "main": "app/index.html", "license": "MIT", "private": true } $ bower install jquery bower jquery#* cached git://github.com/jquery/jquery.git#2.1.1 bower jquery#* validate 2.1.1 against git://github.com/jquery/jquery.git#* bower jquery#*

What is node_modules directory in AngularJS?

故事扮演 提交于 2019-12-01 02:46:38
I am exploring AngularJS tutorial project and found it has node_modules directory inside, which size if 60 megabytes. Does simple clientside javascript project really need so huge corpus of unknown data? I tried to delete this directory and project still works. I suspect it somehow relates with node.js and it's npm but how? Suppose I need to run my project on some conventional web server (not node.js), then how to know, which files/directories are unneeded? Many javascript libraries require to use bower to install them. If I use bower, does this mean I need to keep node_modules ? The node

Not being able to run bower in VS 2012

♀尐吖头ヾ 提交于 2019-12-01 01:22:55
Since yesterday I have been trying to install and use bower for managing my dependencies. After going through many articles although I have been able to install it. I am not being able to run it. Beside many articles I also followed this video: Bower running in Package Manager Console in Visual Studio install As the video is in some other languages even though I followed all the commonds, I could not get $env:path After doing everything when I type bower in the Package manager console, it gives me error Thanks in advance for helping me out. PS: I have already installed npm and node. In order

Control order of source files

浪尽此生 提交于 2019-11-30 22:19:23
问题 I'm using Gulp and the main-bower-files to bundle my bower dependencies. I need to ensure that jQuery is included before AngularJS, but since the Angular bower package does not actually depend on jQuery it is included after. Is there a way to push jQuery to the top of source list or override Angular's dependency so it does require jQuery? I tried using the gulp-order plugin to do this but it messes up the original order of the remaining files: gulp.task('bower', function () { var sources =

What is node_modules directory in AngularJS?

て烟熏妆下的殇ゞ 提交于 2019-11-30 21:42:44
问题 I am exploring AngularJS tutorial project and found it has node_modules directory inside, which size if 60 megabytes. Does simple clientside javascript project really need so huge corpus of unknown data? I tried to delete this directory and project still works. I suspect it somehow relates with node.js and it's npm but how? Suppose I need to run my project on some conventional web server (not node.js), then how to know, which files/directories are unneeded? Many javascript libraries require

Bower error tunneling socket could not be established, cause=Parse Error

≯℡__Kan透↙ 提交于 2019-11-30 19:32:29
I'm behind a corporate proxy, I've set my HTTP_PROXY and HTTPS_PROXY env var to http://username:password@proxyname:port/ doing console.log(process.env) output these var correctly. npm is working, I got bower with it and it(bower) was working fine but since I restarted windows XP I'm always getting : bower error tunneling socket could not be established, cause=Parse Error I don't think there's anything new on the proxy side. I've already tried reseting those vars, restarting everything... Any sugestion ? If changing the proxy settings as pointed out by Vipul is not sufficient also change the