I have built several apps for Tessel 2 in the past but it has been a couple of years. I have only created simple apps and never had an issue with the install phase so am at a loss with my current situation.
I am able to install node, johnny-five and tessel-io no problem. However, when trying to install t2-cli I get the error below. This occurs even when using sudo. I am on MacOS Catalina. Is that possibly causing any issues? Any suggestion would be welcome! I have been combing throw forums all day with no progress.
`npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN engine is-root@2.1.0: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine mdns-js@1.0.3: wanted: {"node":">= 6.0.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine ssh2@0.6.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine inquirer@7.1.0: wanted: {"node":">=6.0.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine usb@1.6.2: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine request@2.88.2: wanted: {"node":">= 6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine npm@6.14.4: wanted: {"node":"6 >=6.2.0 || 8 || >=9.3.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine readable-stream@3.6.0: wanted: {"node":">= 6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine readable-stream@3.6.0: wanted: {"node":">= 6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine har-validator@5.1.3: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine chalk@3.0.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine string-width@4.2.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine cli-cursor@3.1.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine strip-ansi@6.0.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine ansi-escapes@4.3.1: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine figures@3.2.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine ssh2-streams@0.2.1: wanted: {"node":">=4.5.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine ansi-regex@5.0.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine punycode@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine restore-cursor@3.1.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine is-fullwidth-code-point@3.0.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine type-fest@0.11.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine ansi-styles@4.2.1: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine supports-color@7.1.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine has-flag@4.0.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine onetime@5.1.0: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine color-convert@2.0.1: wanted: {"node":">=7.0.0"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine mimic-fn@2.1.0: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine prebuild-install@5.3.3: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine expand-template@2.0.3: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine punycode@2.1.1: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine decompress-response@4.2.1: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
npm WARN engine mimic-response@2.1.0: wanted: {"node":">=8"} (current: {"node":"4.4.5","npm":"2.15.5"})
usb@1.6.2 install /usr/local/lib/node_modules/t2-cli/node_modules/usb
prebuild-install --verbose || node-gyp rebuild
/usr/local/lib/node_modules/t2-cli/node_modules/usb/node_modules/prebuild-install/node_modules/simple-get/index.js:18
const { hostname, port, protocol, auth, path } = url.parse(opts.url) // eslint-disable-line node/no-deprecated-api
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/t2-cli/node_modules/usb/node_modules/prebuild-install/download.js:3:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/tombijesse/.node-gyp/4.4.5"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/t2-cli/node_modules/usb/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 545, in script_main
return main(sys.argv[1:])
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 538, in main
return gyp_main(args)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write
self.Pchify))
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion
version = re.match(r'(\d.\d.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:200:12)
gyp ERR! System Darwin 19.0.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 v4.4.5
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Darwin 19.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "t2-cli"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! path ../uglify-es/bin/uglifyjs
npm ERR! code EEXIST
npm ERR! errno -17
npm ERR! syscall symlink
npm ERR! EEXIST: file already exists, symlink '../uglify-es/bin/uglifyjs' -> '/usr/local/lib/node_modules/t2-cli/node_modules/.bin/uglifyjs'
File exists: ../uglify-es/bin/uglifyjs
Move it away, and try again.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/tombijesse/Desktop/j5screen/npm-debug.log`