Hexo: error :gyp: No Xcode or CLT version detected!

Created on 15 Dec 2019  路  2Comments  路  Source: hexojs/hexo

penggao@pengdeMacBook-Pro blog % npm install

> [email protected] install /Users/penggao/my/hexo/blog/node_modules/nunjucks/node_modules/fsevents
> node-gyp rebuild

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:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.2.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 /Users/penggao/my/hexo/blog/node_modules/nunjucks/node_modules/fsevents
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/nunjucks/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

audited 2662 packages in 5.098s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Most helpful comment

If command line tools are already installed, try sudo xcode-select --reset.

All 2 comments

xcode-select --install

If command line tools are already installed, try sudo xcode-select --reset.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jo4x962k7JL picture jo4x962k7JL  路  3Comments

yunTerry picture yunTerry  路  3Comments

demurgos picture demurgos  路  3Comments

hjmJhon picture hjmJhon  路  3Comments

lushijie picture lushijie  路  3Comments