I've been switching to the 1.13.2 version of ember on a git branch, and now I want to come back to 1.11.1 when going back to an other branch.
I've been running npm install and bower install without failure.
But when I run ember server I run into the following error :
Missing bower packages:
Package: ember
* Specified: 1.11.1
* Installed: 1.13.2
Run `bower install` to install missing dependencies.
Running bower install again does not solve the problem, neither does bower cache clean.
Do
$ rm -rf bower_components
$ bower cache clean
$ bower install
Related
I install Ember 2.7.2 and I create my first application. I install the addon ember-models-table (ember install ember-models-table).
Template:
<h3>Prueba</h3>
{{models-table
data=model
columns=columns}}
I use "ember server" to test my app. When I go to http://localhost:4200/prueba I see this error in console:
Uncaught Error: Assertion Failed: A helper named "models-table" could not be found
Any idea of what is wrong?
Maybe you didn't install this addon correctly for some reason. All I can recommend you is to re-install it by typing these commands:
npm uninstall --save ember-models-table
npm prune
rm -rf node_modules tmp
npm cache clean
npm install
ember install ember-models-table
If the problem still exists after you re-install the addon, probably something is wrong with your environment, not the ember itself.
I upgraded ember-cli to version 2.4.3
npm install -g ember-cli
I can see -- ember-cli#2.4.3 , in the listed dependencies,
but when I check :
(master *)$ ember -v
version: 2.4.2
node: 5.6.0
os: darwin x64
ember cli version is still 2.4.2
what's wrong ?
Updating Ember-CLI's version and ember project's version are different thing.
To update Ember-CLI:
npm uninstall -g ember-cli
npm cache clean
bower cache clean
npm install -g ember-cli#1.13.14
To update your project:
rm -rf node_modules bower_components dist tmp
npm install --save-dev ember-cli#1.13.14
npm install
bower install
ember init
Here is the resource: https://github.com/ember-cli/ember-cli/releases
I strongly recomend you to select which files will be overwritten. You should compare diffs of files. application.hbs, router.js, environment.js, ember-cli-build.js are important files those you don't want them to be overwritten.
UPDATE 2020-02-19:
ember-cli-update
handles updating your project.
I'm fairly new to ember.js
Before starting my project I wanted to upgrade my version to the latest 2.0.1 release.
I went through the steps in the guide.
sudo npm uninstall -g ember-cli
sudo npm cache clean
bower cache clean
sudo npm install -g ember-cli
typing: ember -v gives 1.13.8 just as it did before the 'update'
I can see that the ember-cli website says 1.13.8 is the latest version of ember-cli.
However since the emberjs.com site says the latest release is 2.0.1 and on the homepage the isntruction is to run npm install -g ember-cli I would expect the command
ember -v to return 2.0.1 if I was using the latest release.
I created a new ember project using ember new test and ran
grep -r 'version' * to see if there were any clues but found nothing of interest.
Looking at package.json reveals that ember-data 1.13.8 is one of the dependencies which is also not the latest version (2.0.0)
What (if any) is the difference between ember-cli and ember.js versions?
When I type ember -v the version of which program is being displayed?
If I'm not on the latest release, how can I get it installed?
I'm running ubuntu 14.04
The current version of Ember-cli installs Ember 1.13.8. You need to update your bower.json to use the 2.0.1 version of ember.
"dependencies": {
"ember": "2.0.1",
},
and then run bower install.
When I do npm install ember-data --save, I get only the following files:
./node_modules/ember-data/
./node_modules/ember-data//lib
./node_modules/ember-data//lib/ember-addon
./node_modules/ember-data//lib/ember-addon/blueprints
./node_modules/ember-data//lib/ember-addon/blueprints/ember-data
./node_modules/ember-data//lib/ember-addon/blueprints/ember-data/index.js
./node_modules/ember-data//lib/ember-addon/index.js
./node_modules/ember-data//package.json
./node_modules/ember-data//README.md
I was expecting the same files bower installs, such as ember-data.min.js.
My hunch is I need to do npm install from within node_modules/ember-data? If so, why the extra step?
ember-data is meant to be installed with bower with
$ bower install --save ember-data
Installing ember-data with npm will add it as an add-on for ember-cli project. It will include the files from bower_components. you still need the bower version.
ember-cli has built-in support for ember-data.
After running ember new app, the app does not load because bower failed to download
all required dependencies from github.
run the command bower cache clean
remove bower_components dir
run bower install