Here is the output I'm seeing after running npx create-local-addon and answering the initial prompts.
Using Node v18.16.0
Need to install the following packages:
create-local-addon@0.3.0
Ok to proceed? (y)
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
? May Local Add-on Creator anonymously report usage statistics to improve our tool over time? We will not collect any personal information about you or your add-on — only the way you use this tool. No
Hello! We are here today to create a new add-on for the Local application. Yay!
We are planning to pull down a basic add-on –– just a little something to act as a starting point for your add-on development.
Then we'll do some basic setup: put your files where you want them, make sure Local knows about your add-on, and get you up and running as soon as possible!
You can customize the setup a bit if you want! Run create-local-addon --help to learn more.
Okay, let's get started!
? What is the name of your addon? This will be shown to users. symlinked-plugin-development
? We would like to make a directory for your add-on. What would you like to name this directory? symlinked-plugin-development
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: symlinked-plugin-development@1.0.0
npm ERR! Found: eslint@8.50.0
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^8.50.0" from the root project
npm ERR! peer eslint@">= 4.12.1" from babel-eslint@10.1.0
npm ERR! node_modules/babel-eslint
npm ERR! dev babel-eslint@"^10.1.0" from the root project
npm ERR! peer babel-eslint@"^10.0.1" from @getflywheel/eslint-config-local@1.0.4
npm ERR! node_modules/@getflywheel/eslint-config-local
npm ERR! dev @getflywheel/eslint-config-local@"1.0.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0" from @getflywheel/eslint-config-local@1.0.4
npm ERR! node_modules/@getflywheel/eslint-config-local
npm ERR! dev @getflywheel/eslint-config-local@"1.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/joe.fusco/.npm/_logs/2023-10-13T14_35_09_035Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/joe.fusco/.npm/_logs/2023-10-13T14_35_09_035Z-debug-0.log
> symlinked-plugin-development@1.0.0 build
> tsc
sh: tsc: command not found
NEXT STEPS
If Local is already running, you will need to restart the application in order for your add-on to appear.
Making changes to your add-on:
→ A symlink pointing to your add-on directory has been made in the Local add-ons directory:
/Users/joe.fusco/Library/Application Support/Local/addons/symlinked-plugin-development
→ You can change your add-on by making changes to the source files:
/Users/joe.fusco/Code/symlinked-plugin-development/src
(Boilerplate.jsx and renderer.jsx will have some basic logic in them to give you a starting point, but you'll probably want to make some changes.)
→ Compile, watch add-on source files, and trigger recompilation on change:
cd /Users/joe.fusco/Code/symlinked-plugin-development
npm run build --watch
(You can leave the --watch flag off if you just want to compile your changes once.)
NEED SOME HELP?
→ Looking for resources to help you get started with your add-on? Visit https://localwp.com/get-involved
→ Thinking of submiting your add-on to the Local add-on marketplace? Visit https://localwp.com/submit-addon
Okay, we'll get out of the way and let you start developing! If you have any questions or concerns, try consulting the documentation for Local add-on development.
Here is the output I'm seeing after running
npx create-local-addon
and answering the initial prompts.Using Node v18.16.0