我是t2和node.js的入门者, 在我的Mac OS(10.14.5)上,具有以下版本:
node -v
v10.16.3
npm -v
6.9.0
但是当我尝试任何t2命令时都会得到
(例如,带有“ t2版本”的)
ERR! Node version mismatch for USB drivers.
INFO Automatically rebuilding USB drivers for t2-cli to correct this issue. Please try running your command again.
INFO
INFO If the error persists, please file an issue at https://github.com/tessel/t2-cli/issues/new with this warning.
prebuild-install info begin Prebuild-install version 5.3.2
prebuild-install info looking for cached prebuild @ /Users/lavieestuntoucan/.npm/_prebuilds/649d8d-usb-v1.6.0-node-v64-darwin-x64.tar.gz
prebuild-install info found cached prebuild
prebuild-install info unpacking @ /Users/lavieestuntoucan/.npm/_prebuilds/649d8d-usb-v1.6.0-node-v64-darwin-x64.tar.gz
prebuild-install WARN install EACCES: permission denied, mkdir '/usr/local/lib/node_modules/t2-cli/node_modules/usb/build'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/t2-cli/node_modules/usb/build'
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/t2-cli/node_modules/usb
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! usb@1.6.0 install: `prebuild-install --verbose || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usb@1.6.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/lavieestuntoucan/.npm/_logs/2019-10-13T00_59_41_078Z-debug.log
我通读了github和tessel页面上的讨论,但是似乎没有解决方案,只能在无法安装的节点v6.10上运行。 任何提示欢迎您使用t2!