create-mpl icon indicating copy to clipboard operation
create-mpl copied to clipboard

mpl FAQ

Open lencx opened this issue 4 years ago • 0 comments

Q1

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

Solution:

# step 1:
$ xcode-select --install

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

# step 2:
$ sudo rm -rf $(xcode-select -print-path)

# step 3:
$ xcode-select --install

Q2

✔ Project name: … my-app
✔ Select an application types: › Extension
✔ Select a scaffold: › Visual Studio Code
npm ERR! code ETARGET
npm ERR! notarget No matching version found for generator-code@^1.6.4.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Solution:

rm -rf $(npm get cache)/_npx/*

lencx avatar Nov 03 '21 03:11 lencx