Mac安裝STF-踩坑記錄

一瓦哎、 STF安裝

1柔逼、STF官網(wǎng):
https://github.com/openstf/stf
2愉适、安裝依賴:
brew install rethinkdb graphicsmagick zeromq protobuf yasm pkg-config
3维咸、安裝STF:
npm install -g stf

二、環(huán)境依賴

1瞬哼、npm及node版本(node.js最好為8.X系列)

$ npm version
{ wangjuan: '1.0.0',
  npm: '5.5.1',
  ares: '1.10.1-DEV',
  cldr: '31.0.1',
  http_parser: '2.7.0',
  icu: '59.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.9.1',
  openssl: '1.0.2m',
  tz: '2017b',
  unicode: '9.0',
  uv: '1.15.0',
  v8: '6.1.534.47',
  zlib: '1.2.11' }

2坐慰、 RethinkDB >= 2.2
3用僧、不支持windows

三、常見問題

1把跨、提示bufferutil包錯(cuò)誤沼死,報(bào)錯(cuò)信息如下:

16959 verbose stack Error: bufferutil@1.3.0 install: `node-gyp rebuild`
16959 verbose stack Exit status 1
16959 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
16959 verbose stack     at EventEmitter.emit (events.js:182:13)
16959 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
16959 verbose stack     at ChildProcess.emit (events.js:182:13)
16959 verbose stack     at maybeClose (internal/child_process.js:962:16)
16959 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
16960 verbose pkgid bufferutil@1.3.0
16961 verbose cwd /Users/wangjuan
16962 verbose Darwin 18.2.0
16963 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "stf" "-g" "--unsafe-perm"
16964 verbose node v10.13.0
16965 verbose npm  v6.4.1
16966 error code ELIFECYCLE
16967 error errno 1
16968 error bufferutil@1.3.0 install: `node-gyp rebuild`
16968 error Exit status 1
16969 error Failed at the bufferutil@1.3.0 install script.

解決方案:降低node.js版本意蛀,最好為8.X系列 !~

2、提示/usr/local/lib/node_modules 目錄沒有寫權(quán)限秀姐,報(bào)錯(cuò)信息如下:

553 error Error: EACCES: permission denied, access '/usr/local/lib/node_modules/stf/node_modules/@slack/client/node_modules/async'
2553 error  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/stf/node_modules/@slack/client/node_modules/async'
2553 error   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/stf/node_modules/@slack/client/node_modules/async\'',
2553 error   errno: -13,
2553 error   code: 'EACCES',
2553 error   syscall: 'access',
2553 error   path: '/usr/local/lib/node_modules/stf/node_modules/@slack/client/node_modules/async' }
2554 error The operation was rejected by your operating system.
2554 error It is likely you do not have the permissions to access this file as the current user
2554 error
2554 error If you believe this might be a permissions issue, please double-check the
2554 error permissions of the file and its containing directories, or try running
2554 error the command again as root/Administrator (though this is not recommended).
2555 verbose exit [ -13, true ]

解決方案:
1省有、刪除原有stf文件夾,重新安裝伸头,千萬別用sudo來執(zhí)行安裝恤磷。
rm -rf /usr/local/lib/node_modules/stf/
2扫步、給/usr/local/lib/node_modules/stf/賦予權(quán)限河胎,更改用戶及所屬組
chown 當(dāng)前用戶:當(dāng)前用戶的默認(rèn)組 -R 目錄


以上虎敦,對你有幫助的話原茅,點(diǎn)贊??吧~~
歡迎關(guān)注我的簡書,博客,TesterHome,Github~~~

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末擂橘,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子摩骨,更是在濱河造成了極大的恐慌通贞,老刑警劉巖恼五,帶你破解...
    沈念sama閱讀 218,451評論 6 506
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異灾馒,居然都是意外死亡茎用,警方通過查閱死者的電腦和手機(jī)睬罗,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,172評論 3 394
  • 文/潘曉璐 我一進(jìn)店門轨功,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人容达,你說我怎么就攤上這事』ㄑ危” “怎么了?”我有些...
    開封第一講書人閱讀 164,782評論 0 354
  • 文/不壞的土叔 我叫張陵柒昏,是天一觀的道長近速。 經(jīng)常有香客問我堪旧,道長削葱,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,709評論 1 294
  • 正文 為了忘掉前任爆袍,我火速辦了婚禮首繁,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘陨囊。我一直安慰自己弦疮,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,733評論 6 392
  • 文/花漫 我一把揭開白布蜘醋。 她就那樣靜靜地躺著胁塞,像睡著了一般。 火紅的嫁衣襯著肌膚如雪压语。 梳的紋絲不亂的頭發(fā)上啸罢,一...
    開封第一講書人閱讀 51,578評論 1 305
  • 那天,我揣著相機(jī)與錄音胎食,去河邊找鬼扰才。 笑死,一個(gè)胖子當(dāng)著我的面吹牛厕怜,可吹牛的內(nèi)容都是我干的衩匣。 我是一名探鬼主播,決...
    沈念sama閱讀 40,320評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼粥航,長吁一口氣:“原來是場噩夢啊……” “哼舵揭!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起躁锡,我...
    開封第一講書人閱讀 39,241評論 0 276
  • 序言:老撾萬榮一對情侶失蹤午绳,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后映之,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體拦焚,經(jīng)...
    沈念sama閱讀 45,686評論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡蜡坊,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,878評論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了赎败。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片秕衙。...
    茶點(diǎn)故事閱讀 39,992評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖僵刮,靈堂內(nèi)的尸體忽然破棺而出据忘,到底是詐尸還是另有隱情,我是刑警寧澤搞糕,帶...
    沈念sama閱讀 35,715評論 5 346
  • 正文 年R本政府宣布勇吊,位于F島的核電站,受9級特大地震影響窍仰,放射性物質(zhì)發(fā)生泄漏汉规。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,336評論 3 330
  • 文/蒙蒙 一驹吮、第九天 我趴在偏房一處隱蔽的房頂上張望针史。 院中可真熱鬧,春花似錦碟狞、人聲如沸啄枕。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,912評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽频祝。三九已至,卻和暖如春竭业,著一層夾襖步出監(jiān)牢的瞬間智润,已是汗流浹背及舍。 一陣腳步聲響...
    開封第一講書人閱讀 33,040評論 1 270
  • 我被黑心中介騙來泰國打工未辆, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人锯玛。 一個(gè)月前我還...
    沈念sama閱讀 48,173評論 3 370
  • 正文 我出身青樓咐柜,卻偏偏與公主長得像,于是被迫代替她去往敵國和親攘残。 傳聞我的和親對象是個(gè)殘疾皇子拙友,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,947評論 2 355

推薦閱讀更多精彩內(nèi)容