Gyp no xcode or clt version detected1/17/2024 But I'm wondering why Xcode ask for installing Rosseta I thought that Xcode is native M1 application. I have an M1 MacBook pro so I didn't install Rosseta. When you update a node.js or npm to the latest version and you are trying to install a new npm package using npm install package-name command you will see the weird error like this in your terminal. Npm WARN The package react-dropzone is included as both a dev and production dependency. Upon starting it there was a pop-up window which ask for installing Rosetta. It saying that the node-gyp rebuild is failed, and this is because No Xcode or CLT version detected. In this tutorial, we will learn how to solve the node gyp Error: No Xcode or clt version detected in mac os. Npm WARN The package country-data is included as both a dev and production dependency. 1 gyp: No Xcode or CLT version detected sudo xcode -select -install xcode -select: error: command line tools are already install ed, use Software Update to install updates. xcode-select -install xcode-select: error: command line tools are already installed, use 'Software Update' to install updates 'Software Update' 2. Gyp ERR! cwd /Users/synapse/Documents/synapsefi-dev-ui/node_modules/watchpack/node_modules/fsevents Gyp ERR! command "/Users/synapse/.nvm/versions/node/v8.8.0/bin/node" "/Users/synapse/.nvm/versions/node/v8.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" The CLT stands for Command Line Tools for Xcode. Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iPadOS, iOS, watchOS, and tvOS. Gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) It saying that the node-gyp rebuild is failed, and this is because No Xcode or CLT version detected. Now, install the Xcode by running this command. sudo rm -rf (xcode-select -print-path) This above command asks for a system password. First, delete the Xcode tools by using the below command. Gyp ERR! stack at ChildProcess.emit (events.js:213:7) To fix this error, you need to re-install the Xcode command-line tools. Gyp ERR! stack at emitTwo (events.js:125:13) Gyp ERR! stack at ChildProcess.onCpExit (/Users/synapse/.nvm/versions/node/v8.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:344:16) Gyp ERR! stack Error: gyp failed with exit code: 1
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |