Tag: bower

凉亭安装错误

现在我已经安装了节点和Npm,我在terminal(是的,我在Mac上)运行这个命令: npm install -g bower 随后从terminal输出: npm http GET https://registry.npmjs.org/bower npm http 304 https://registry.npmjs.org/bower npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/bower' npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/bower'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/usr/local/lib/node_modules/bower', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/bower', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm […]

如何将凉亭组件与sails.js连接?

我想能够通过凉亭安装Javascript依赖关系,并在sails.js应用程序中使用它们,但我不能找出一种方法来做到这一点,只是从bower_components文件夹复制粘贴文件到Sails资产夹。 理想情况下,我想我想使用requirejs并指向main.js文件中的bower组件 。 我可能会试图在一个圆洞里打一个方形钉,如果是的话请告诉我。 欢迎任何有关使用Sailspipe理components/libraries想法。

从root用户运行凉亭,有可能吗? 怎么样?

我有一个本地开发服务器,在这里我testing了很多东西,现在我正在玩鲍尔来pipe理我的Symfony2项目中的库依赖项。 在安装NodeJS(v0.10.31)和bower(1.3.9)之后,我尝试以root身份从控制台运行命令sp:bower:install ,它属于Symfony2 SpBowerBundle: Symfony > sp:bower:install Installing bower dependencies for "TemplateBundle" into "/var/www/html/tanane/src/Tanane/TemplateBundle/Resources/config/bower/../../public/components" bower ESUDO Cannot be run with sudo Additional error details: Since bower is a user command, there is no need to execute it with superuser permissions. If you're having permission errors when using bower without sudo, please spend a few minutes […]

npm WARN弃用graceful-fs@3.0.8:graceful-fs版本3

我正在运行npm install,但它给我一个错误。 我也尝试在更新之前运行下面的命令。 $ npm install npm并且我更新了graceful-fs。 $ npm install -g graceful-fs graceful-fs@4.1.3 C:\Users\RDY672\AppData\Roaming\npm\node_modules\graceful-fs 错误如下: $ npm install -g bower@1.3.12 npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on […]

在代理人后面的凉亭

bower install在代理服务器后面的bower install失败,下面的设置(一些设置是无用的…): git config –global http.proxy fr-proxy.example.com:3128 git config –global https.proxy fr-proxy.example.com:3128 export http_proxy=http://fr-proxy.example.com:3128 export https_proxy=http://fr-proxy.example.com:3128 npm config set proxy http://fr-proxy.example.com:3128 npm config set https-proxy http://fr-proxy.example.com:3128 npm config set registry http://registry.npmjs.org/ 我也尝试安装/卸载凉亭和bower clean cache 。

升级到节点7后无法find模块“内部/ fs”

我们最近尝试升级到构build服务器上的节点v7.0.0,但在应用程序构build任务失败的“bower_concat”步骤中开始出现问题: Loading "bower-concat.js" tasks…ERROR Error: Cannot find module 'internal/fs' 我们已经安装了: node v7.0.0(通过yum “nodesource”存储库安装) npm 4.0.1 使用grunt (如果这是相关的) grunt-bower-concat 0.6.0 咕噜生成任务configuration: grunt.registerTask( 'build:prod', [ 'clean:prod', 'copy:prod', 'replace', 'bower_concat', 'ngtemplates', 'concat', 'uglify', 'cssmin', 'injector:prod', 'copy:cssfix', 'copy:dist', 'bowercopy:dist', 'bowercopy:fonts', 'template:setProdVersion' ] ); 而咕噜bower_concat任务: bower_concat: { all: { dest: '<%= app.build %>/bower.js', cssDest: '<%= app.build %>/bower.css', dependencies: { 'bootstrap': […]

如何使用私人git服务器(SSH)安装bower软件包?

编辑 : 这家伙做成功一模一样 ,不知道为什么它不为我工作。 我刚刚安装了git和安装权限/ SSH公钥authentication(Centos 6.5)。 我能够拉/推没有问题使用ie: git clone git@code.organization.com:projects/boilerplate-template 用户名是git ,放置在/home/git/projects ,使用git –init –shared boilerplate-template创build的存储库。 我怎样才能在另一个项目中使用Bower的boilerplate-template ? 我已经尝试使用以下bower.json文件,但没有运气: { "name": "my/newproject", "dependencies": { "boilerplate-template": "git://code.organization.com:projects/boilerplate-template" } } ECMDERR :无法执行“git ls-remote –tags – heads git://code.organization.com:projects / boilerplate-template,退出代码128无法查找code.organization.com(port project)… 可悲的是,它失败了,因为:project不是港口,而是path。 我也试过用ssh://而不是git:// : ENOTFOUND :包ssh://code.organization.com:找不到projects / boilerplate-template。

用grunt自动化npm和bower安装

我有一个node / angular项目,使用npm作为后端依赖pipe理,而bower作为前端依赖pipe理。 我想使用一个咕task任务来执行两个安装命令。 我一直无法弄清楚如何去做。 我试图使用exec ,但实际上并没有安装任何东西。 module.exports = function(grunt) { grunt.registerTask('install', 'install the backend and frontend dependencies', function() { // adapted from http://www.dzone.com/snippets/execute-unix-command-nodejs var exec = require('child_process').exec, sys = require('sys'); function puts(error, stdout, stderr) { console.log(stdout); sys.puts(stdout) } // assuming this command is run from the root of the repo exec('bower install', {cwd: './frontend'}, […]

将Visual Studio 2015中的Grunt,Bower,Gulp,NPM用于ASP.NET 4.5项目

Visual Studio 2015内置支持ASP.NET 5项目的Grunt,Bower,Gulp和NPM等工具。 但是,当我使用Visual Studio 2015创buildASP.NET 4.5.2项目时,它不使用这些工具。 我想使用bower而不是nuget来pipe理客户端软件包。 我可以在Visual Studio 2013中find有关使用这些工具的信息(例如,请参阅此问题)。 但是我猜这个过程对于Visual Studio 2015是不同的,因为它已经构build了对这些工具的支持。

鲍尔命令未find窗口

我在尝试使用bower(安装基础5)或者在命令行上获得与工作有关的任何事物时遇到了很大的问题。 我已经安装了 ruby1.9.3 混帐(从命令提示符选项运行) 的NodeJS 我已经成功跑了 npm install -g bower grunt-cli gem install foundation 而且这些都运行良好。 我查看了npm/node_modules目录,在那里我可以看到'bower'文件夹。 每次我打入bower无论是CMD,rubycmd或混帐打击我得到“命令不被认可” 我已经在环境variables中设置了gitpath。 令人厌烦的是凉亭上的指令。 它指出: npm install -g bower bower install 那么这是行不通的!