Error ketika build node-gyp di MacOS

Topic created ยท 1 Posts ยท 18 Views
  • Mau share masalah yg kemarin baru aku alamin pas lagi ngerjain charity project. Nemu error kaya gini:

    > 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 (/Users/putualfredcrosby/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345: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 19.3.0
    gyp ERR! command "/Users/putualfredcrosby/.nvm/versions/node/v10.16.3/bin/node" "/Users/putualfredcrosby/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /Users/putualfredcrosby/osby/gepembri/gepembri_staff/node_modules/fsevents
    gyp ERR! node -v v10.16.3
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    

    ternyata solusinya adalah:

    reinstall xcode

    $ sudo rm -rf $(xcode-select -print-path)
    $ xcode-select --install

    atau

    reset xcode

    $ [sudo] xcode-select --reset

    Semoga membantu ๐ŸŽ‰

Pengumuman!

Untuk yang baru join, jangan lupa perkenalkan dirimu disini ya

Juga jangan lupa baca ketentuan penggunaan di forum ini. Rekan-rekan bisa lihat disini.

Buat yang penasaran alasan dibuatnya forum BaliJS ini silakan baca disini.

Utas Populer Bulan Ini

Semeton Online

Forum Stats

0
Online

123
Users

91
Topics

453
Posts