首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Grunticon & TravisCI

Grunticon & TravisCI
EN

Stack Overflow用户
提问于 2015-08-31 20:04:14
回答 1查看 232关注 0票数 8

当Grunticon安装到TravisCI上的Rails 4引擎上时,我们遇到了一个问题。我很想知道以下几点:

  • 使Rails中安装Grunticon的路径更短
  • TravisCI在构建过程中跳过安装Grunticon的一种方法(我们不需要它来测试)
  • 在TravisCI上升级npm的一种方法(谣传npm v3可能解决这一问题)

特拉维斯的错误:

代码语言:javascript
复制
    Gem::Package::TooLongFileName: File "node_modules/grunt-grunticon/node_modules/grunticon-lib/node_modules/directory-colorfy/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile" has a too long path (should be 256 or less)
    An error occurred while installing trusty-convoy-extension (0.0.3), and Bundler
    cannot continue.

    Make sure that `gem install trusty-convoy-extension -v '0.0.3'` succeeds before
    bundling.

    The command "eval bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}" failed. Retrying, 2 of 3.

Grunticon是使用根目录中的Gruntfile.js安装的。它触发node_modules目录中的脚本。我们遵循这个指南:https://github.com/filamentgroup/grunticon

谢谢!

更新:成功地在TravisCI上安装了npm 3。

代码语言:javascript
复制
before_install:
  - npm install -g npm@3.x-latest

遗憾的是,没有解决这个问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-15 16:51:45

在你的Travis预装..。

代码语言:javascript
复制
npm i -g npm@3

Npm 3处于后期测试阶段,它将给您一个更平坦的目录结构。

注意:您需要将任何对等依赖项添加到package.json中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32319074

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档