Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 通过节点安装bcrypt失败_Python_Node.js_Bcrypt - Fatal编程技术网

Python 通过节点安装bcrypt失败

Python 通过节点安装bcrypt失败,python,node.js,bcrypt,Python,Node.js,Bcrypt,我是node.js的新手。 我已将bcrypt作为我的依赖项。 我安装了Python2.7,并设置了PythonEnv变量。 我目前不知道如何解决这个问题 但是,每当我运行npm安装时,它都会失败,原因如下 584 silly install resolved [] 585 verbose about to build C:\Users\i054564\git\ipl-app\node_modules\bcrypt\node_modules\nan 586 info build C:\Users

我是node.js的新手。 我已将bcrypt作为我的依赖项。 我安装了Python2.7,并设置了PythonEnv变量。 我目前不知道如何解决这个问题

但是,每当我运行npm安装时,它都会失败,原因如下

584 silly install resolved []
585 verbose about to build C:\Users\i054564\git\ipl-app\node_modules\bcrypt\node_modules\nan
586 info build C:\Users\i054564\git\ipl-app\node_modules\bcrypt\node_modules\nan
587 info linkStuff nan@2.0.5
588 silly linkStuff nan@2.0.5 has C:\Users\i054564\git\ipl-app\node_modules\bcrypt\node_modules as its parent node_modules
589 verbose linkBins nan@2.0.5
590 verbose linkMans nan@2.0.5
591 verbose rebuildBundles nan@2.0.5
592 info install nan@2.0.5
593 info postinstall nan@2.0.5
594 verbose unlock done using C:\Users\i054564\AppData\Roaming\npm-cache\_locks\nan-748d8af25c51a897.lock for C:\Users\i054564\git\ipl-app\node_modules\bcrypt\node_modules\nan
595 verbose about to build C:\Users\i054564\git\ipl-app\node_modules\bcrypt
596 info build C:\Users\i054564\git\ipl-app\node_modules\bcrypt
597 info linkStuff bcrypt@0.8.5
598 silly linkStuff bcrypt@0.8.5 has C:\Users\i054564\git\ipl-app\node_modules as its parent node_modules
599 verbose linkBins bcrypt@0.8.5
600 verbose linkMans bcrypt@0.8.5
601 verbose rebuildBundles bcrypt@0.8.5
602 verbose rebuildBundles [ 'bindings', 'nan' ]
603 info install bcrypt@0.8.5
604 verbose unsafe-perm in lifecycle true
605 info bcrypt@0.8.5 Failed to exec install script
606 verbose unlock done using C:\Users\i054564\AppData\Roaming\npm-cache\_locks\bcrypt-0ddde1df84d59032.lock for C:\Users\i054564\git\ipl-app\node_modules\bcrypt
607 verbose stack Error: bcrypt@0.8.5 install: `node-gyp rebuild`
607 verbose stack Exit status 1
607 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
607 verbose stack     at emitTwo (events.js:87:13)
607 verbose stack     at EventEmitter.emit (events.js:172:7)
607 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
607 verbose stack     at emitTwo (events.js:87:13)
607 verbose stack     at ChildProcess.emit (events.js:172:7)
607 verbose stack     at maybeClose (internal/child_process.js:827:16)
607 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
608 verbose pkgid bcrypt@0.8.5
609 verbose cwd C:\Users\i054564\git\ipl-app
610 error Windows_NT 6.3.9600
611 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
612 error node v4.4.0
613 error npm  v2.14.20
614 error code ELIFECYCLE
615 error bcrypt@0.8.5 install: `node-gyp rebuild`
615 error Exit status 1
616 error Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
616 error This is most likely a problem with the bcrypt package,
616 error not with npm itself.
616 error Tell the author that this fails on your system:
616 error     node-gyp rebuild
616 error You can get information on how to open an issue for this project with:
616 error     npm bugs bcrypt
616 error Or if that isn't available, you can get their info via:
616 error
616 error     npm owner ls bcrypt
616 error There is likely additional logging output above.
617 verbose exit [ 1, true ]
618 verbose unbuild node_modules\bcrypt
619 info preuninstall bcrypt@0.8.5
620 info uninstall bcrypt@0.8.5
584愚蠢安装已解决[]
585详细关于生成C:\Users\i054564\git\ipl app\node\u modules\bcrypt\node\u modules\n
586信息生成C:\Users\i054564\git\ipl app\node\u modules\bcrypt\node\u modules\n
587信息链接nan@2.0.5
588愚蠢的链接nan@2.0.5将C:\Users\i054564\git\ipl app\node\u modules\bcrypt\node\u modules作为其父节点\u模块
589个详细链接箱nan@2.0.5
590冗长的联络员nan@2.0.5
591详细的重建文件夹nan@2.0.5
592信息安装nan@2.0.5
593信息后安装nan@2.0.5
594使用C:\Users\i054564\AppData\Roaming\npm cache\\u locks\nan-748d8af25c51a897.lock为C:\Users\i054564\git\ipl app\node\u modules\bcrypt\node\u modules\nan完成详细解锁
595关于构建C:\Users\i054564\git\ipl app\node\u modules\bcrypt的详细信息
596信息生成C:\Users\i054564\git\ipl app\node\u modules\bcrypt
597信息链接bcrypt@0.8.5
598蠢货bcrypt@0.8.5将C:\Users\i054564\git\ipl app\node\u模块作为其父节点\u模块
599详细链接箱bcrypt@0.8.5
600个详细联系人bcrypt@0.8.5
601详细的重建文件夹bcrypt@0.8.5
602详细重建绑定['bindings','nan']
603信息安装bcrypt@0.8.5
604生命周期中的详细不安全perm为true
605信息bcrypt@0.8.5无法执行安装脚本
606使用C:\Users\i054564\AppData\Roaming\npm cache\\u locks\bcrypt-0ddde1df84d59032.lock为C:\Users\i054564\git\ipl app\node\u modules\bcrypt完成详细解锁
607详细堆栈错误:bcrypt@0.8.5安装:`node gyp rebuild`
607详细堆栈退出状态1
EventEmitter上的607详细堆栈。(C:\Program Files\nodejs\node\u modules\npm\lib\utils\lifecycle.js:214:16)
emitTwo上的607详细堆栈(events.js:87:13)
EventEmitter.emit上的607详细堆栈(events.js:172:7)
607子进程的详细堆栈。(C:\Program Files\nodejs\node\u modules\npm\lib\utils\spawn.js:24:14)
emitTwo上的607详细堆栈(events.js:87:13)
ChildProcess.emit上的607详细堆栈(events.js:172:7)
maybeClose的607详细堆栈(internal/child_process.js:827:16)
607 Process.ChildProcess.\u handle.onexit处的详细堆栈(internal/child\u Process.js:211:5)
608详细的pkgidbcrypt@0.8.5
609详细cwd C:\Users\i054564\git\ipl应用程序
610错误Windows\u NT 6.3.9600
611错误argv“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“安装”
612错误节点v4.4.0
613错误npm v2.14.20
614错误代码ELIFECYCLE
615错误bcrypt@0.8.5安装:`node gyp rebuild`
615错误退出状态1
616错误在测试时失败bcrypt@0.8.5安装脚本“节点gyp重建”。
616错误这很可能是bcrypt包的问题,
616错误与npm本身无关。
616错误告诉作者此操作在您的系统上失败:
616错误节点gyp重建
616错误您可以通过以下方式获取有关如何打开此项目问题的信息:
616错误npm错误bcrypt
616错误或如果不可用,您可以通过以下方式获取他们的信息:
616错误
616错误npm所有者ls bcrypt
616错误上面可能有额外的日志输出。
617详细退出[1,true]
618详细的未构建节点\u模块\bcrypt
619信息预卸载bcrypt@0.8.5
620信息卸载bcrypt@0.8.5

您可以使用bcryptjs,它是纯js模块。npm install bcryptjs

您使用哪个命令来安装bcrypt?另外,您使用的是什么平台(WIndows/Linux/Mac)?您能否将实际打印的内容发布到控制台,而不是
npm debug.log