Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a ember version specific project?

When i use,

ember new projname

project is getting created with 2.7.0 ember version. I want to create a older version ember project. What i should use? [i checked options that can be used with new command, but none helps for this.]

like image 864
Praveen Kumar Avatar asked Aug 01 '16 14:08

Praveen Kumar


People also ask

How do I create an Ember project?

To create a new project using Ember CLI, use the new command. In preparation for the tutorial in the next section, you can make an app called super-rentals . A new project will be created inside your current directory. You can now go to your super-rentals project directory and start working on it.

How do I tell what version of Ember I have?

install the ember-inspector addon and you'll find all the info you need in the 'info' tab. Show activity on this post.

Does Ember use npm?

Ember CLI is built with JavaScript, and requires the most recent LTS version of the Node. js runtime. It also requires dependencies fetched via npm.

Is Ember js still used?

Ember has been an enabler of great productivity for many teams for almost a decade and I'm sure it's going to continue to be that. It's changed and improved a lot since its first release and is now in better shape than ever with its Octane edition.


1 Answers

Here's what I ended up doing:

  1. create a new directory for my project and cd inside of it
  2. npm init (enter through some bogus details, doesn't matter, we're going to erase soon)
  3. npm install --save-dev [email protected]
  4. delete package.json and package-lock.json
  5. ember new app

This got me a node_modules folder with the desired version of ember, and then also allowed me to use the ember cli to generate a project. It will create a folder with the name of the app, of course, and you can safely delete the node_modules folder in the app's parent directory.

This feels like a little bit of a round-about way of doing things, but it worked, and it seemed easier than trying to mess with my global versions.

Hope this helps someone out!

like image 53
Sal Avatar answered Sep 20 '22 02:09

Sal