課程
/前端開發(fā)
/Node.js
/node建站攻略(二期)——網(wǎng)站升級(jí)
win 7 64位,裝完python2.7.8 起服務(wù)就掛了,百度無(wú)果啊
求解
2014-10-07
源自:node建站攻略(二期)——網(wǎng)站升級(jí) 3-1
正在回答
windows 下開發(fā)確實(shí)會(huì)有很多坑,我已經(jīng)有 3 年多沒有用過 windows 系統(tǒng)了,看這個(gè)報(bào)錯(cuò)感覺是 bcrypt 這個(gè)庫(kù)安裝的有問題,試試從 stackoverflow 上搜搜相關(guān)的 issue
Neal_Shan 提問者
用bcrypt-nodejs替換后,代碼修改什么樣??誰(shuí)貼出來看看
我也遇到了同樣的問題,樓主你是怎么解決的?求分享!
我也出現(xiàn)了同樣的問題,根據(jù)提示安裝了python2.7.8,運(yùn)行npm install bcrypt --save后等待了很久才執(zhí)行完。
D:\WWW\node_modules\imooc_movie\movie>npm?install?bcrypt?--save npm?WARN?package.json?movie@0.2.0?No?README?data npm?WARN?package.json?crypto@0.0.3?crypto?is?also?the?name?of?a?node?core?module . | >?bcrypt@0.7.8?install?D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt >?node-gyp?rebuild D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt>node?"C:\Program?Files \nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node- gyp.js"?rebuild Building?the?projects?in?this?solution?one?at?a?time.?To?enable?parallel?build, please?add?the?"/m"?switch. ??blowfish.cc ??bcrypt.cc ??bcrypt_node.cc ..\src\bcrypt.cc(232):?warning?C4267:?“=”:?從“size_t”轉(zhuǎn)換到“unsigned?char” ,可能丟失數(shù)據(jù)?[ D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\bcrypt_lib.vcxp roj] C:\Program?Files?(x86)\Microsoft?Visual?Studio?10.0\VC\include\xlocale(323):?wa rning?C4530:?使用了?C++?異常處理程序,但未啟用展開語(yǔ)義。請(qǐng)指定?/EHsc?[D:\WWW\nod e_modules\imooc_movie \movie\node_modules\bcrypt\build\bcrypt_lib.vcxproj] ..\src\bcrypt_node.cc(133):?warning?C4244:?“參數(shù)”:?從“ssize_t”轉(zhuǎn)換到“unsign ed?char”,可 能丟失數(shù)據(jù)?[D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\bcry pt_l ib.vcxproj] ..\src\bcrypt_node.cc(207):?warning?C4244:?“參數(shù)”:?從“const?ssize_t”轉(zhuǎn)換到“ unsigned?c har”,可能丟失數(shù)據(jù)?[D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\b uild\bc rypt_lib.vcxproj] ..\src\bcrypt_node.cc(298):?warning?C4267:?“初始化”:?從“size_t”轉(zhuǎn)換到“int” ,可能丟失數(shù)據(jù)?[D:\ WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\bcrypt_lib.vcxproj ] ..\src\bcrypt_node.cc(299):?warning?C4267:?“初始化”:?從“size_t”轉(zhuǎn)換到“int” ,可能丟失數(shù)據(jù)?[D:\ WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\bcrypt_lib.vcxproj ] C:\Users\Albert\.node-gyp\0.10.32\deps\v8\include\v8.h(184):?warning?C4506:?內(nèi)聯(lián) 函 數(shù)“v8::Persistent<T>?v8::Persistent<T>::New(v8::Handle<T>)”沒有定義?[D:\WWW\no de_mod ules\imooc_movie\movie\node_modules\bcrypt\build\bcrypt_lib.vcxproj] ??????????with ??????????[ ??????????????T=v8::Object ??????????] ?????正在創(chuàng)建庫(kù)?D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\ Rele ??ase\bcrypt_lib.lib?和對(duì)象?D:\WWW\node_modules\imooc_movie\movie\node_modules\b cr ??ypt\build\Release\bcrypt_lib.exp ??正在生成代碼 ??已完成代碼的生成 ??bcrypt_lib.vcxproj?->?D:\WWW\node_modules\imooc_movie\movie\node_modules\bcry ??pt\build\Release\\bcrypt_lib.node bcrypt@0.7.8?node_modules\bcrypt └──?bindings@1.0.0
而后再運(yùn)行g(shù)runt就成功了。
確實(shí)用bcrypt-node
舉報(bào)
幫助你深入前后端開發(fā)留下的迷惑,為進(jìn)一步自學(xué)打下基礎(chǔ)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2014-10-08
windows 下開發(fā)確實(shí)會(huì)有很多坑,我已經(jīng)有 3 年多沒有用過 windows 系統(tǒng)了,看這個(gè)報(bào)錯(cuò)感覺是 bcrypt 這個(gè)庫(kù)安裝的有問題,試試從 stackoverflow 上搜搜相關(guān)的 issue
2015-01-05
用bcrypt-nodejs替換后,代碼修改什么樣??誰(shuí)貼出來看看
2014-11-28
我也遇到了同樣的問題,樓主你是怎么解決的?求分享!
2014-10-23
我也出現(xiàn)了同樣的問題,根據(jù)提示安裝了python2.7.8,運(yùn)行npm install bcrypt --save后等待了很久才執(zhí)行完。
而后再運(yùn)行g(shù)runt就成功了。
2014-10-12
確實(shí)用bcrypt-node