Fails to install on MacOS Catalina
See original GitHub issueYour environment
OS : MacOS Catalina 10.15.6 Node.js version : 14.11.0 suitecloud-cli version : 1.1.1 Terminal/CMD tool : MacOS built-in Terminal app
Describe the bug
After cloning the repo from github, changing into dir and running npm install, I get the errors listed below. Also MacOS GUI pop-up comes up saying: “The xcodebuild command requires the command line developer tools. Would you like to install the tools now?”. So when I hit “Install” button the licence agreement comes up which I “Agree”, and then “Finding software” screen progress goes on for a sec and then the message pops up saying “Can’t install the software because it is not currently available from the Software Update server”. Also, the described solution from https://medium.com/flawless-app-stories/gyp-no-xcode-or-clt-version-detected-macos-catalina-anansewaa-38b536389e8d webpage does not work for me either, I end up with the same error message.
So here is the error log:
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/admin/netsuite-suitecloud-node-cli/extensions/localserver-cli-command/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command “/usr/local/Cellar/node/14.11.0/bin/node” “/Users/admin/netsuite-suitecloud-node-cli/extensions/localserver-cli-command/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd /Users/admin/netsuite-suitecloud-node-cli/extensions/localserver-cli-command/node_modules/node-sass
gyp ERR! node -v v14.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.12.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.12.0 postinstall 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/admin/.npm/_logs/2020-09-24T11_14_31_495Z-debug.log
lerna ERR! npm install exited 1 in ‘@oracle/suitecloud-cli-localserver-command’
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @oracle/suitecloud-sdk@1.1.1 postinstall: lerna bootstrap
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @oracle/suitecloud-sdk@1.1.1 postinstall 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/admin/.npm/_logs/2020-09-24T11_14_31_549Z-debug.log
To Reproduce
Steps to reproduce the behavior:
- git clone the repo
- cd into the cloned repo dir
- npm install
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
@alii-gator and @vic-nik thanks for your help guys, I did try installing it from the App Store… it took about an hour, but after finishing the install, starting up Xcode and letting it “update components” - the npm install went successful. Therefore this issue can be closed now.
Thanks for checking that Ali. I tend to think it’s environment problem too as no one else has reported similar issues on Catalina so far.