NPM无法安装USB

我试图安装NPM软件包“ USB ”,但安装过程失败,出现以下错误输出:

C:\Users\goorlavi1\Documents\pc-transfer>npm install --save usb > usb@1.2.0 install C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v51-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@7.2.1 (node-v51 ABI) (falling back to source compile with node-gyp) C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean ) C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding ) else (node "" configure --fallback-to-build --module=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding ) gyp ERR! configure error gyp ERR! stack Error: Python executable "C:\Users\goorlavi1\AppData\Local\Programs\Python\Python36-32\python.EXE" is v3.6.3, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:443:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:202:7) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at maybeClose (internal/child_process.js:885:16) gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:334:11) gyp ERR! stack at emitOne (events.js:96:13) gyp ERR! stack at Socket.emit (events.js:188:7) gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:501:12) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\goorlavi1\\Documents\\pc-transfer\\node_modules\\usb\\src\\binding\\usb_bindings.node" "--module_name=usb_bindings" "--module_path=C:\\Users\\goorlavi1\\Documents\\pc-transfer\\node_modules\\usb\\src\\binding" gyp ERR! cwd C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb gyp ERR! node -v v7.2.1 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:885:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Windows_NT 10.0.15063 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\goorlavi1\\Documents\\pc-transfer\\node_modules\\usb\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb node-pre-gyp ERR! node -v v7.2.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.30 node-pre-gyp ERR! not ok Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\goorlavi1\Documents\pc-transfer\node_modules\usb\src\binding' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\goorlavi1\Documents\pc-transfer\node_modules\are-we-there-yet\package.json' npm WARN PC-Transfer@0.7.0 No repository field. npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "usb" npm ERR! node v7.2.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! usb@1.2.0 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the usb@1.2.0 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the usb package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs usb npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls usb npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\goorlavi1\Documents\pc-transfer\npm-debug.log 

我现在很无助,不知道如何解决这个问题。 如果有人遇到同样的问题,并解决了这个问题,我会很高兴,如果你能分享你的知识。