Logo

dev-resources.site

for different kinds of informations.

ember-cli is stuck on certain version

Published at
9/7/2023
Categories
ember
javascript
Author
michalbryxi
Categories
2 categories in total
ember
open
javascript
open
Author
11 person written this
michalbryxi
open
ember-cli is stuck on certain version

Today when bootstrapping new EmberJS project I encountered weird headscratcher:

> npx [email protected] new sandbox --skip-npm --skip-git
...
Ember CLI v4.2.0
...
πŸŽ‰  Successfully created project sandbox.
Enter fullscreen mode Exit fullscreen mode

Wut? Why does it say Ember CLI v4.2.0 when I explicitly asked for 5.2.1? Let's see what project was created:

> cat sandbox/package.json | grep ember-source

    "ember-source": "~4.2.0",
Enter fullscreen mode Exit fullscreen mode

Hmm? So really v4.2.0, but why?

[Few confused debugging attempts later]

The problem turned out to be in the folder where I was working. For some reason I had node_modules folder there. And that folder happened to have [email protected]. There was no good reason for that folder to exist so I just deleted it and things started working as expected.

Conclusion

If you request ember-cli of one version and get output of other version, then check that your current working directory does not contain node_modules folder with the incorrect version inside.


Image generated via Midjourney prompt: Two spiderman pointing at each other; Hand drawn; Sketch; Simple --ar 16:9

ember Article's
30 articles in total
Favicon
Ember.js in 60 Seconds
Favicon
Intro to Ember.js Components
Favicon
The Top 7 Reasons You Should NOT Use Ember.js on Your Next Project
Favicon
why don't we have a slack channel?
Favicon
Installing EmberJS v2 addons from GitHub forks using PNPM
Favicon
Add custom layer to embe-leaflet
Favicon
Why Ember Wins My Heart Over React ❀️ And Maybe Yours Too!
Favicon
Migrate from ember-cli-deploy-sentry to sentry-cli
Favicon
ERR_PNPM_BAD_PM_VERSION This project is configured to use vX of pnpm. Your current pnpm is vY
Favicon
Fixing Package Dependencies
Favicon
React inside Ember - The Second Chapter
Favicon
πŸš€ Rendering Dynamic Components in Ember.js with Embroider
Favicon
How to use the new Ember theme for QUnit
Favicon
Effects in Ember
Favicon
unsupported ambiguity between helper and component
Favicon
12 common Ember errors to know: A definitive guide on handling EmberJS errors
Favicon
Demystifying Ember.js Development: How to Hire the Right Developer for YourΒ Project
Favicon
Is Angular.js or Ember.js the better choice for JavaScript frameworks?
Favicon
Integrations Series: Authentication And Connection
Favicon
Support for in/inter page linking / scrolling in EmberJS
Favicon
Ember-cli config
Favicon
GraphQL in Your Ember App with Glimmer Apollo
Favicon
Setting up Tailwind, the easy way
Favicon
Context leaking in EmberJS tests
Favicon
What to use instead of `@ember/string`
Favicon
Ember Language Server in Emacs
Favicon
Why Ember.js is designed for Enterprise Software Development
Favicon
Demystifying Ember Serialization: A Comprehensive Guide
Favicon
ember-cli is stuck on certain version
Favicon
React micro-frontend in ember app - Part 2

Featured ones: