Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Successfully installed dependencies" despite failing to install eslint on an outdated node #227

Closed
nickolay opened this issue Oct 27, 2024 · 1 comment · Fixed by #228 or #181
Closed

Comments

@nickolay
Copy link

I tried the new CLI on a slightly outdated version of node 18(.15)

It picked a version of eslint, which apparently requires node >=18.18, but still reported "Successfully installed dependencies", which was slightly confusing.

$ npx sv create sv-test
┌  Welcome to the Svelte CLI! (v0.5.9)
│
◇  Which template would you like?
│  SvelteKit minimal
│
◇  Add type checking with Typescript?
│  Yes, using Typescript syntax
│
◆  Project created
│
◇  What would you like to add to your project? (use arrow keys / space bar)
│  prettier, eslint, vitest
│
◇  Which package manager do you want to install dependencies with?
│  npm
│
◆  Successfully setup integrations
│
◇  Successfully installed dependencies
│
◇  Successfully formatted modified files
│
◇  Project next steps ─────────────────────────────────────────────────────╮
│                                                                          │
│  1: cd sv-test                                                           │
│  2: git init && git add -A && git commit -m "Initial commit" (optional)  │
│  3: npm run dev -- --open                                                │
│                                                                          │
│  To close the dev server, hit Ctrl-C                                     │
│                                                                          │
│  Stuck? Visit us at https://svelte.dev/chat                              │
│                                                                          │
├──────────────────────────────────────────────────────────────────────────╯
│
└  You're all set!

When I tried to use the installed template:

$ cd sv-test/
$ npm run test:unit

> [email protected] test:unit
> vitest

sh: line 1: vitest: command not found
$ npm run dev

> [email protected] dev
> vite dev

sh: line 1: vite: command not found

The actual problem is indicated when running npm install manually:

$ npm install
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
npm ERR! notsup Actual:   {"npm":"9.5.0","node":"v18.15.0"}

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nickolay/.npm/_logs/2024-10-27T21_34_48_908Z-debug-0.log
@AdrianGonz97
Copy link
Member

Reopening as the previous solution caused more problems than it fixed. It's now been reverted and will need to be revisited

@AdrianGonz97 AdrianGonz97 reopened this Oct 28, 2024
@AdrianGonz97 AdrianGonz97 linked a pull request Nov 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants