Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Generate fails with "No matching version found for mocha@^10.0.0." #294

Closed
dseravalli opened this issue Jun 27, 2022 · 1 comment
Closed

Comments

@dseravalli
Copy link

dseravalli commented Jun 27, 2022

Encountered when trying to follow the getting started guide. It runs cleanly if I choose Jest as test framework instead of Mocha.

Steps to reproduce

❯ feathers generate app
? Do you want to use JavaScript or TypeScript? TypeScript
? Project name feathers-chat
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? npm
? What type of API are you making? REST, Realtime via Socket.io
? Which testing framework do you prefer? Mocha + assert
? This app uses authentication Yes

? What authentication strategies do you want to use? (See API docs for all 180+ supported oAuth providers) Username + Password (Local)
? What is the name of the user (entity) service? users
? What kind of service is it? NeDB
? What is the database connection string? nedb://../data

Expected behavior

Generator runs without error

Actual behavior

npm ERR! code ETARGET
npm ERR! notarget No matching version found for mocha@^10.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/danseravalli/.npm/_logs/2022-06-27T01_43_46_494Z-debug-0.log


> feathers-chat@0.0.0 lint
> eslint src/. test/. --config .eslintrc.json --ext .ts --fix "--fix"


Oops! Something went wrong! :(

ESLint: 8.18.0

ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin".

(The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/Users/danseravalli/Developer/holler/feathers-chat".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm install @typescript-eslint/eslint-plugin@latest --save-dev

The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "--config".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

System configuration

NodeJS version: 17.3.0

Operating System: macOS 12.3.1 (M1 Pro)

NPM Version: 8.3.0

Feathers version: 4.8.0

@daffl
Copy link
Member

daffl commented Jun 29, 2022

That version definitely exists on npm at https://www.npmjs.com/package/mocha/v/10.0.0 - this is likely an intermittent npm or local caching issue and running it again (or installing the latest version of Node) should fix it.

@daffl daffl closed this as completed Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants