npm install报错 python_运行npm install brain.js时出现奇怪的npm错误

G:\firststep\BR>npm i brain.js>gl@4.3.3install G:\firststep\BR\node_modules\gl>prebuild-install||node-gyp rebuildprebuild-install WARN installNoprebuilt binaries found(target=10.14.2runtime=node arch=x64 libc=platform=win32)G:\firststep\BR\node_modules\gl>ifnotdefinednpm_config_node_gyp(node"C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"rebuild)else(node"C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js"rebuild)gyp ERR!findPythongyp ERR!findPythonPythonisnotsetfromcommand lineornpm configurationgyp ERR!findPythonPythonisnotsetfromenvironment variable PYTHONgyp ERR!findPythoncheckingif"python"can be usedgyp ERR!findPython-"python"isnotinPATHorproduced an errorgyp ERR!findPythoncheckingif"python2"can be usedgyp ERR!findPython-"python2"isnotinPATHorproduced an errorgyp ERR!findPythoncheckingifthe py launcher can be used to findPython2gyp ERR!findPython-"py.exe"isnotinPATHorproduced an errorgyp ERR!findPythoncheckingifPythonisC:\Python27\python.exegyp ERR!findPython-"C:\Python27\python.exe"couldnotbe rungyp ERR!findPythoncheckingifPythonisC:\Python37\python.exegyp ERR!findPython-"C:\Python37\python.exe"couldnotbe rungyp ERR!findPythongyp ERR!findPython**********************************************************gyp ERR!findPythonYouneed to install the latest versionofPython2.7.gyp ERR!findPythonNode-gyp should be able to findandusePython.Ifnot,gyp ERR!findPythonyou cantryoneofthe following options:gyp ERR!findPython-Usetheswitch--python="C:\Path\To\python.exe"gyp ERR!findPython(acceptedbyboth node-gypandnpm)gyp ERR!findPython-Setthe environment variable PYTHONgyp ERR!findPython-Setthe npm configuration variable python:gyp ERR!findPythonnpm configsetpython"C:\Path\To\python.exe"gyp ERR!findPythonFormore information consult the documentation at:gyp ERR!findPythonhttps://github.com/nodejs/node-gyp#installationgyp ERR!findPython**********************************************************gyp ERR!findPythongyp ERR!configure errorgyp ERR!stackError:Couldnotfind anyPythoninstallation tousegyp ERR!stack atPythonFinder.fail(C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:303:47)gyp ERR!stack atPythonFinder.runChecks(C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:132:21)gyp ERR!stack atPythonFinder.(C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:221:16)gyp ERR!stack atPythonFinder.execFileCallback(C:\Users\rafae\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-python.js:267:16)gyp ERR!stack at exithandler(child_process.js:301:5)gyp ERR!stack atChildProcess.errorhandler(child_process.js:313:5)gyp ERR!stack atChildProcess.emit(events.js:182:13)gyp ERR!stack atProcess.ChildProcess._handle.onexit(internal/child_process.js:238:12)gyp ERR!stack at onErrorNT(internal/child_process.js:407:16)gyp ERR!stack at process._tickCallback(internal/process/next_tick.js:63:19)gyp ERR!SystemWindows_NT10.0.17763gyp ERR!command"C:\\Program Files\\nodejs\\node.exe""C:\\Users\\rafae\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js""rebuild"gyp ERR!cwd G:\firststep\BR\node_modules\glgyp ERR!node-v v10.14.2gyp ERR!node-gyp-v v5.0.3gyp ERR!notoknpm WARN enoent ENOENT:nosuch fileordirectory,open'G:\firststep\BR\package.json'npm WARN BRNodescriptionnpm WARN BRNorepository field.npm WARN BRNoREADME datanpm WARN BRNolicense field.npm ERR!code ELIFECYCLEnpm ERR!errno1npm ERR!gl@4.3.3install:`prebuild-install || node-gyp rebuild`npm ERR!Exitstatus1npm ERR!npm ERR!Failedat the gl@4.3.3install script.npm ERR!Thisisprobablynota problemwithnpm.Thereislikely additional logging output above.npm ERR!A complete logofthisrun can be foundin:npm ERR!C:\Users\rafae\AppData\Roaming\npm-cache\_logs\2019-08-14T18_48_29_640Z-debug.log

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值