I can see you ran `npm init @eslint/config`.Cholmondely wrote: ↑Wed Jan 24, 2024 6:22 pmI already had node (from dismal attempts at mastering javascript).
I got this:
Command inside AppleMac's "Terminal":resulted in all sorts of on-going fun and games culminating in this:Code: Select all
npm init @eslint/config
Code: Select all
npx: installed 43 in 30.559s file:///~/~/.npm/_npx/46428/lib/node_modules/@eslint/create-config/lib/init/config-initializer.js:400 throw new Error("A package.json file is necessary to initialize ESLint. Run `npm init` to create a package.json file and try again."); ^ Error: A package.json file is necessary to initialize ESLint. Run `npm init` to create a package.json file and try again. at promptUser (file:///~/~/.npm/_npx/46428/lib/node_modules/@eslint/create-config/lib/init/config-initializer.js:400:15) at initializeConfig (file:///~/~/.npm/_npx/46428/lib/node_modules/@eslint/create-config/lib/init/config-initializer.js:616:12) at file:///~/~/.npm/_npx/46428/lib/node_modules/@eslint/create-config/bin/create-config.js:10:1 at ModuleJob.run (internal/modules/esm/module_job.js:146:23) at async Loader.import (internal/modules/esm/loader.js:165:24) at async Object.loadESM (internal/process/esm_loader.js:68:5)
Now what output do you get from `npm init` running in the same directory?