Coder Social home page Coder Social logo

fecs-git-hooks's People

Contributors

cxtom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wenber zy-zhaoxue

fecs-git-hooks's Issues

Permission denied, open '/usr/local/.git/hooks/pre-commit'

运行 sudo npm install fecs-git-hooks -g的时候遇到的问题

/usr/local/bin/fecs-hook -> /usr/local/lib/node_modules/fecs-git-hooks/bin/fecs-hook                                   │| |/  
                                                                                                                       │| *   02f091b - Merge pull request #24 from nicoder/patch-1 (7 months ago) <Ruan YiFeng>
> [email protected] install /usr/local/lib/node_modules/fecs-git-hooks                                              │| |\  
> fecs -v && node ./lib/install.js                                                                                     │| | * 82b24f7 - fix typo (7 months ago) <Nicolas Dermine>
                                                                                                                       │* | | 326c77a - edit Readme (7 months ago) <ruanyf>
fecs 0.8.5-beta.9                                                                                                      │|/ /  
Trace: { [Error: EACCES: permission denied, open '/usr/local/.git/hooks/pre-commit']                                   │* |   56c16bb - Merge pull request #23 from luoxiaobatman/master (7 months ago) <Ruan YiFeng>
  errno: -13,                                                                                                          │|\ \  
  code: 'EACCES',                                                                                                      │| |/  
  syscall: 'open',                                                                                                     │|/|   
  path: '/usr/local/.git/hooks/pre-commit' }                                                                           │| * aaf1144 - fix readme (7 months ago) <luoxiao>
    at Object.<anonymous> (/usr/local/lib/node_modules/fecs-git-hooks/lib/install.js:14:13)                            │|/  
    at Module._compile (module.js:413:34)                                                                              │*   b3dd15d - Merge pull request #20 from qiuyuntao/master (8 months ago) <Ruan YiFeng>
    at Object.Module._extensions..js (module.js:422:10)                                                                │|\  
    at Module.load (module.js:357:32)                                                                                  │| * fc03b25 - lack of a comma in demo 15 webpack.config.js (8 months ago) <yuntao.qyt>
    at Function.Module._load (module.js:314:12)                                                                        │Kevin at Mac.local in ~/workspace/webpack-demos on master
    at Function.Module.runMain (module.js:447:10)                                                                      │$ tig
    at startup (node.js:141:18)                                                                                        │Kevin at Mac.local in ~/workspace/webpack-demos on master
    at node.js:933:3 

项目根目录下的 .fecsrc 文件不起作用

发现项目根目录下的 .fecsrc 文件里的配置不起作用。在命令行下执行 fecs xx.js 发现 .fecsrc 里的配置有效,但 git commit 时,发现 .fecsrc 里的配置无效,还是按照默认的规则作检查。

使用postinstall?

可以考虑使用postinstall命令,在install成功时自动执行脚本吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.