Skip to content

Cant install. gyp: No Xcode or CLT version detected! #36

@MarshalX

Description

@MarshalX

macOS 11.4, macbook air M1, node v10.24.0 via nvm, terminal (iTerm2) running under rosetta

Console output:

➜  backend (master) npm i nodegit-lfs                                                                                      ✭ ✱

> node-pty@0.7.8 install /Users/marshal/projects/sudoku/backend/node_modules/node-pty
> node scripts/install.js

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 (/Users/marshal/.nvm/versions/node/v10.24.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/Users/marshal/.nvm/versions/node/v10.24.0/bin/node" "/Users/marshal/.nvm/versions/node/v10.24.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/marshal/projects/sudoku/backend/node_modules/node-pty
gyp ERR! node -v v10.24.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/Users/marshal/projects/sudoku/backend/package.json'
npm WARN backend No description
npm WARN backend No repository field.
npm WARN backend No README data
npm WARN backend No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty@0.7.8 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-pty@0.7.8 install 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/marshal/.npm/_logs/2021-06-14T10_32_31_110Z-debug.log

Full log file: 2021-06-14T10_32_31_110Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions