課程
/前端開發(fā)
/Node.js
/node建站攻略(二期)——網(wǎng)站升級
大伙、老師 麻煩幫忙看下是什么問題
2014-10-12
源自:node建站攻略(二期)——網(wǎng)站升級 3-3
正在回答
在終端,直接進入項目下bcrypt目錄,執(zhí)行命令node-gyp rebuild.
命令執(zhí)行完后,grunt.
OK!
我也出現(xiàn)了同樣的問題,根據(jù)提示安裝了python2.7.8,運行npm install bcrypt --save后等待了很久才執(zhí)行完。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
? ?
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++?異常處理程序,但未啟用展開語義。請指定?/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”
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)建庫?D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\
Rele
??ase\bcrypt_lib.lib?和對象?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
而后再運行grunt就成功了。
bcrypt安裝有問題,看看你python環(huán)境有沒?
我把老師schemas user.js復制過去也不行 看來不是schema的問題
是 schemas 里面的問題么
舉報
幫助你深入前后端開發(fā)留下的迷惑,為進一步自學打下基礎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2016-04-20
在終端,直接進入項目下bcrypt目錄,執(zhí)行命令node-gyp rebuild.
命令執(zhí)行完后,grunt.
OK!
2014-10-24
我也出現(xiàn)了同樣的問題,根據(jù)提示安裝了python2.7.8,運行npm install bcrypt --save后等待了很久才執(zhí)行完。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
? ?
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++?異常處理程序,但未啟用展開語義。請指定?/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)建庫?D:\WWW\node_modules\imooc_movie\movie\node_modules\bcrypt\build\
Rele
??ase\bcrypt_lib.lib?和對象?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
? ?
而后再運行grunt就成功了。
2014-10-13
bcrypt安裝有問題,看看你python環(huán)境有沒?
2014-10-12
我把老師schemas user.js復制過去也不行 看來不是schema的問題
2014-10-12
是 schemas 里面的問題么