question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install fails - mojave

See original GitHub issue

I have XCode installed.

xpc-connection@0.1.4 install /Users/narayan.gopalappa/Desktop/Me/Git/TestBLE/node_modules/xpc-connection node-gyp rebuild

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instan ce

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instan ce

Traceback (most recent call last): File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py”, line 16, in <module> sys.exit(gyp.script_main()) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py”, line 545, in script_main return main(sys.argv[1:]) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py”, line 538, in main return gyp_main(args) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/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 “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2170, in Gene rateOutput part_of_all=qualified_target in needed_targets) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 795, in Write self.Pchify)) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/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 “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 551, in GetCflags archs = self.GetActiveArchs(self.configname) File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 420, in GetActiveArchs xcode_archs_default = GetXcodeArchsDefault() File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 118, in GetXcodeArchsDefault xcode_version, _ = XcodeVersion() File “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/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 (/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Darwin 18.2.0 gyp ERR! command “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/bin/node” “/Users/narayan.gopalappa/.nvm/versions/node/v6.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/narayan.gopalappa/Desktop/Me/Git/TestBLE/node_modules/xpc-connection gyp ERR! node -v v6.0.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm WARN install:xpc-connection@0.1.4 xpc-connection@0.1.4 install: node-gyp rebuild npm WARN install:xpc-connection@0.1.4 Exit status 1 Test@1.0.0 /Users/narayan.gopalappa/Desktop/Me/Git/TestBLE └─┬ noble@1.9.1 ├── bplist-parser@0.0.6 └─┬ debug@2.2.0 └── ms@0.7.1

npm WARN optional Skipping failed optional dependency /noble/bluetooth-hci-socket: npm WARN notsup Not compatible with your operating system or architecture: bluetooth-hci-socket@0.5.1 npm WARN Test@1.0.0 No repository field. npm WARN Test@1.0.0 No license field.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

5reactions
LukasBombachcommented, Aug 29, 2019

For what it’s worth I am completely rewriting noble here https://github.com/LukasBombach/sblendid/ with a modern API and entirely in TypeScript and native code for the BLE connection.

So far everything actually works already, but I am currently refactoring my code (so the current commit is probably broken) and will release soon

1reaction
LukasBombachcommented, Aug 29, 2019

@dsteinman @playground I’d be happy to give you a ping when I release and get your feedback on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Steps to solve Node.js — NPM — Installation Issue in Mac OS ...
Step 1: To install and switch Node.js versions based on the projects, ... OS: Mac OS Mojave — 10.14.4 (updated with latest software...
Read more >
NPM, Node fail to open after upgrade to Mojave 10.14.6
It seems like the quickest/easiest way to fix this would be to uninstall/re-install node and npm, but I'd rather fix the actual issue...
Read more >
npm install fails - Mojave · Issue #31 · Timeular/noble-mac
I have XCode installed but node-gyp build fails. ... npm ERR! npm ERR! Failed at the noble-mac@0.0.4 native_install script 'node-pre-gyp install ...
Read more >
npm gyp error on Mojave - Apple Support Communities
Does anyone know how to resolve errors like this? I am trying to run 'npm i -S web3'. And I keep getting this...
Read more >
node-libcurl - npm
Important Notes on Prebuilt Binaries / Direct Installation ... and you are using macOS version >= Mojave, check if the error you are ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found