No matching version found for ajv@^6.5.5

npm install gulp-sass的時候出現(xiàn)了這些錯誤

npm WARN deprecated lodash.assign@4.2.0: This package is deprecated. Use Object.assign.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for ajv@^6.5.5
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'har-validator'
npm ERR! notarget 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yiyinglu/.npm/_logs/2018-11-08T03_55_23_559Z-debug.log

好唄赡盘,那我就npm install ajv@^6.5.5帆竹。然而不行竟趾。

npm ERR! code ETARGET
npm ERR! notarget No matching version found for ajv@^6.5.5
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yiyinglu/.npm/_logs/2018-11-08T03_57_43_195Z-debug.log

在此之前我用yarn來install sass言缤,因為找不到ajv@^ 6.5.5所以可以選擇ajv@^ 6.5.4薯蝎,不過還是會報錯T0T

error /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-sass
Output:
Building: /usr/local/bin/node /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.7.0
gyp info using node@10.13.0 | darwin | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:89:16
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:13:12)\n    at F (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:68:19)\n    at E (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:80:29)\n    at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/which/which.js:89:16\n    at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/index.js:42:5\n    at /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/isexe/mode.js:8:5\n    at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 10.13.0
gyp verb command install [ '10.13.0' ]
gyp verb install input version string "10.13.0"
gyp verb install installing version: 10.13.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 10.13.0
gyp verb ensuring nodedir is created /Users/yiyinglu/.node-gyp/10.13.0
gyp verb created nodedir /Users/yiyinglu/.node-gyp/10.13.0
gyp http GET https://nodejs.org/download/release/v10.13.0/node-v10.13.0-headers.tar.gz
gyp verb download using proxy url: "http://dev-proxy.oa.com:8080"
gyp WARN install got an error, rolling back install
gyp verb command remove [ '10.13.0' ]
gyp verb remove using node-gyp dir: /Users/yiyinglu/.node-gyp
gyp verb remove removing target version: 10.13.0
gyp verb remove removing development files for version: 10.13.0
gyp ERR! configure error 
gyp ERR! stack Error: tunneling socket could not be established, statusCode=504
gyp ERR! stack     at ClientRequest.onConnect (/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/tunnel-agent/index.js:166:19)
gyp ERR! stack     at Object.onceWrapper (events.js:273:13)
gyp ERR! stack     at ClientRequest.emit (events.js:182:13)
gyp ERR! stack     at Socket.socketOnData (_http_client.js:474:11)
gyp ERR! stack     at Socket.emit (events.js:182:13)
gyp ERR! stack     at addChunk (_stream_readable.js:283:12)
gyp ERR! stack     at readableAddChunk (_stream_readable.js:264:11)
gyp ERR! stack     at Socket.Readable.push (_stream_readable.js:219:10)
gyp ERR! stack     at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/yiyinglu/Documents/work/git/qz-web/weishi-manager/admin/theme/node_modules/node-sass
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
Build failed with error code: 1

有看到類似情況的,https://github.com/sass/node-sass/issues/1781
折騰了半天献雅,沒搞定碉考。
好咯,我們轉(zhuǎn)回用npm 吧挺身,繞不過ajv@^6.5.5侯谁,然后我就找類似情況的https://stackoverflow.com/questions/44331005/npm-error-no-matching-version-found-for

The version you have specified, or one of your dependencies has specified is not published to npmjs.com
Executing npm view ionic-native (see docs) the following output is returned for package versions:
As you can see no version higher than 2.9.0 has been published to the npm repository. Strangely they have versions higher than this on GitHub.

好唄,我也來

npm view ajv
ajv@6.5.5 | MIT | deps: 4 | versions: 269
Another JSON Schema Validator
https://github.com/epoberezkin/ajv

dist
.tarball: http://r.tnpm.oa.com/ajv/download/ajv-6.5.5.tgz
.shasum: cf97cdade71c6399a92c6d6c4177381291b781a1

dependencies:
fast-deep-equal: ^2.0.1            fast-json-stable-stringify: ^2.0.0 json-schema-traverse: ^0.4.1       uri-js: ^4.2.2                     

maintainers:
- blakeembrey <hello@blakeembrey.com>
- esp <e.poberezkin@me.com>

dist-tags:
4.x: 4.11.8       beta: 6.0.0-rc.1  latest: 6.5.5     

published 3 days ago by esp <e.poberezkin@me.com>

然后直接install

npm isntall http://r.tnpm.oa.com/ajv/download/ajv-6.5.5.tgz

章钾。墙贱。。贱傀。惨撇。
哇奇跡發(fā)生了! 安裝成功~
后續(xù)就接著裝sass窍箍,也OK了~串纺!嗚嗚嗚搞定。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末椰棘,一起剝皮案震驚了整個濱河市纺棺,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌邪狞,老刑警劉巖祷蝌,帶你破解...
    沈念sama閱讀 216,843評論 6 502
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異帆卓,居然都是意外死亡巨朦,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,538評論 3 392
  • 文/潘曉璐 我一進店門剑令,熙熙樓的掌柜王于貴愁眉苦臉地迎上來糊啡,“玉大人,你說我怎么就攤上這事吁津∨镄睿” “怎么了?”我有些...
    開封第一講書人閱讀 163,187評論 0 353
  • 文/不壞的土叔 我叫張陵碍脏,是天一觀的道長梭依。 經(jīng)常有香客問我,道長典尾,這世上最難降的妖魔是什么役拴? 我笑而不...
    開封第一講書人閱讀 58,264評論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮钾埂,結(jié)果婚禮上河闰,老公的妹妹穿的比我還像新娘科平。我一直安慰自己,他們只是感情好姜性,可當我...
    茶點故事閱讀 67,289評論 6 390
  • 文/花漫 我一把揭開白布匠抗。 她就那樣靜靜地躺著,像睡著了一般污抬。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上绳军,一...
    開封第一講書人閱讀 51,231評論 1 299
  • 那天印机,我揣著相機與錄音,去河邊找鬼门驾。 笑死射赛,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的奶是。 我是一名探鬼主播楣责,決...
    沈念sama閱讀 40,116評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼聂沙!你這毒婦竟也來了秆麸?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,945評論 0 275
  • 序言:老撾萬榮一對情侶失蹤及汉,失蹤者是張志新(化名)和其女友劉穎沮趣,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體坷随,經(jīng)...
    沈念sama閱讀 45,367評論 1 313
  • 正文 獨居荒郊野嶺守林人離奇死亡房铭,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,581評論 2 333
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了温眉。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片缸匪。...
    茶點故事閱讀 39,754評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖类溢,靈堂內(nèi)的尸體忽然破棺而出凌蔬,到底是詐尸還是另有隱情,我是刑警寧澤豌骏,帶...
    沈念sama閱讀 35,458評論 5 344
  • 正文 年R本政府宣布龟梦,位于F島的核電站,受9級特大地震影響窃躲,放射性物質(zhì)發(fā)生泄漏计贰。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,068評論 3 327
  • 文/蒙蒙 一蒂窒、第九天 我趴在偏房一處隱蔽的房頂上張望躁倒。 院中可真熱鬧荞怒,春花似錦、人聲如沸秧秉。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,692評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽象迎。三九已至荧嵌,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間砾淌,已是汗流浹背啦撮。 一陣腳步聲響...
    開封第一講書人閱讀 32,842評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留汪厨,地道東北人赃春。 一個月前我還...
    沈念sama閱讀 47,797評論 2 369
  • 正文 我出身青樓,卻偏偏與公主長得像劫乱,于是被迫代替她去往敵國和親织中。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 44,654評論 2 354

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