CannerCMS/cannercms

where to put it? another installation style.

cerebrowang opened this issue · 5 comments

I'm in GFW.
It do not work normal installation.
I have to find another installation style of "canner"
I download cli-3.2.13.tgz, its size 98.6 MB.
BUT
where to put it ??

Hi, @singerswang, here are the steps without npm or yarn in my Macbook:

  1. Download the cli-macos.gz from cli-release
  2. Ungzip it to a folder that I created called test-install, so here is the path: ~/projects/test-install/cli-macos.
  3. Add the script ~/projects/test-install/index.js that enables the binary.
    const fs = require('fs');
    
    function chmod (file) {
      const s = fs.statSync(file)
      const newMode = s.mode | 64 | 8 | 1
      if (s.mode === newMode) return
      const base8 = newMode.toString(8).slice(-3)
      fs.chmodSync(file, base8)
    }
    
    chmod('./cli-macos');
  4. Execute the script
    $ node ~/projects/test-install/index.js
    
  5. Then you can exec cli-macos by type ~/projects/test-install/cli-macos

You can also alias the command canner in your ~/.bashrc, like:

alias canner='~/projects/test-install/cli-macos'

Hope this helps you. Thanks!

无论如何多谢 @abz53378 的答案,尽管今天早晨04:28,**大陆时间我又搞定普通下载安装了。😓
屏幕快照 2019-03-24 上午4 26 35

为了贡献社区,下面公布本人安装最短路径。

$ brew install node -g -s

& npm install -g @canner/cli

Thanks, Singers Wang, so I closed this one.

I have send a email to you from @x.ly 我也很 faint,不是拿这小问题可以*扰你们。