Closed
Description
error code
> ckmeans@1.0.1 install /Users/project/node_modules/ckmeans
> node-gyp rebuild
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
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
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 (/usr/local/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:215:12)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/usr/local/Cellar/node/8.1.3/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/project/node_modules/ckmeans
gyp ERR! node -v v7.0.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN facilio@0.0.1 No repository field.
npm WARN facilio@0.0.1 No license field.
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/Cellar/node/8.1.3/bin/node" "/usr/local/bin/npm" "install" "--save" "d3-scale-cluster"
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! ckmeans@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ckmeans@1.0.1 install script 'node-gyp rebuild'.
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 ckmeans package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ckmeans
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ckmeans
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/project/npm-debug.log
Activity
schnerd commentedon Jul 4, 2018
@prasanthmaran1 this library contains a native addon for extra performance in node environments, what this means is that you should have a c compiler installed on your system. This is fairly common in the node ecosystem.
See instructions here: https://github.com/nodejs/node-gyp#on-macos
In most cases this is as easy as running
xcode-select --install
on your mac.Let me know if that works.
[-]Cannot able to install npm d3-scale-cluster package [/-][+]Install fails on node-gyp rebuild with "gyp: No Xcode or CLT version detected!"[/+][-]Install fails on node-gyp rebuild with "gyp: No Xcode or CLT version detected!"[/-][+]npm install fails on node-gyp rebuild with "gyp: No Xcode or CLT version detected!"[/+]prasanthmaran1 commentedon Jul 8, 2018
Thanks @schnerd package installed successfully...
gilbertomangones commentedon Aug 20, 2019
perfect work for me. using xcode-select --install on mac. Thank you.
paul4156 commentedon Nov 7, 2019
I had to re-install the xcode tools for some weird reason...
That is listed in the bottom of the guide (https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md). So thank you!
tinker-li commentedon Nov 7, 2019
I do as this, too.
Fil commentedon Nov 7, 2019
I wouldn't ever trust a
sudo rm -rf $(smth)
command. However, doing it it two steps solved the problem for me also:SK-CSE commentedon Nov 9, 2019
following step help me to resolve this issue on Mac Catalina OS
wangxiaocuo commentedon Nov 25, 2019
Thank you !!! very much
44 remaining items
wangxiaocuo commentedon May 13, 2020
Sometimes it works, sometimes it doesn't.
So I suggest you use
yarn
to avoid the pain.Or you can choose to use
less
instead ofSCSS
.gschema commentedon May 18, 2020
@prasanthmaran1 hey mate, can you add this link:
The solution for the node-gyp problem/error on macOS Catalina "No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'."
In similar fashion like @joe-nano did at the top of his initial post here:
nodejs/node-gyp#1927
My issue background:
On my machine
node-gyp
got broken totally randomly and have no idea what to connect that break/corruption to. The system works perfectly fine and has 0 issues. After a restart it got reported as broken after runningyarn
. It was installed and present in the system but installation was corrupted for some reason. Interesting.atipugin commentedon Jun 3, 2020
Second time a row Catalina updates (10.15, 10.15.1) break CLT. Removing existing dir and re-installing CLT works, but it's pretty annoying.
bohehe commentedon Jun 19, 2020
Save my life, thank you!
omjha1505 commentedon Oct 3, 2020
https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md. : this works for me. thanks
m-a-r-c-e-l-i-n-o commentedon Oct 14, 2020
Only thing that worked for me was a comment by inglkruiz on here: nodejs/node-gyp#1927
halkemist commentedon Oct 28, 2020
If you have a server response problem after
xcode-select --install
command.Download the Command Line Tools for Xcode directly from https://developer.apple.com/download/more/
kaiwoods commentedon Nov 12, 2020
I've fixed this by forcing npm to use a later version of node-gyp (at least version 7).
npm install -g node-gyp
node-gyp -v
which node-gyp
npm config set node_gyp /path/from/previous/step
This is hopefully a more permanent solution than always needing to re-install xcode-select tools. Unfortunately that is something I've found myself having to do time and time again.
The only gotcha is that, in my case (using nvm to manage my node version), when I update node, I'll have to update this config again. Still, I'd rather that than reinstall xcode-select every time.
Working good for me so far; YMMV.
nadnoslen commentedon Dec 4, 2020
Thanks @kaiwoods. I use asdf and bump into this as I dance around projects with different versions of node. For my asdf world I needed to
asdf which node-gyp
to fetch the propernode-gyp
path (regularwhich
will give you the asdf shim). Hope that helps asdf users. And seriously, thanks @kaiwoods!!!AlexeySmolyaninov commentedon Dec 8, 2020
I have had an old node version after I have updated it to a new stable one it fixed my problem.
Pearel-Skillate commentedon Feb 18, 2021
This worked perfectly!