where to put it? another installation style.
cerebrowang opened this issue · 5 comments
cerebrowang commented
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 ??
abz53378 commented
Hi, @singerswang, here are the steps without npm
or yarn
in my Macbook:
- Download the
cli-macos.gz
from cli-release - Ungzip it to a folder that I created called
test-install
, so here is the path:~/projects/test-install/cli-macos
. - 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');
- Execute the script
$ node ~/projects/test-install/index.js
- 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!
cerebrowang commented
无论如何多谢 @abz53378 的答案,尽管今天早晨04:28,**大陆时间我又搞定普通下载安装了。😓
cerebrowang commented
为了贡献社区,下面公布本人安装最短路径。
$ brew install node -g -s
& npm install -g @canner/cli
abz53378 commented
Thanks, Singers Wang, so I closed this one.
cerebrowang commented
I have send a email to you from @x.ly 我也很 faint,不是拿这小问题可以*扰你们。