I recently started learning mean.js an all tutorials that I find are for the 0.3.* version, I installed the official yeoman generator and it uses the 0.4.* version, I understand how the new folder distribucion works so there is no problem following the tutorials until I have to generate the scaffold with CRUD, the problem is that generates with the new distribution.
I found here switch to meanjs 0.3 from 0.4 the last repository for 0.3.* version, how can I run CRUD for this version?
You should install the 0.1.12 of generator-meanjs which has yoeman's generator for meanjs 0.3
npm install -g generator-meanjs#0.1.12
Related
i'm trying to update imagick module version from version 3.5.1 https://ibb.co/3hJXmtW to latest 3.6
For doing this i start reading documentation "Install Howto" here https://centos.pkgs.org/7/remi-x86_64/php-pecl-imagick-im6-3.6.0-1.el7.remi.5.4.x86_64.rpm.html
Here the result of first step: https://ibb.co/TcwjYR3
This is the result of second step: https://ibb.co/xFN1wN3
I'm following the correct documentation?
Thanks
For a proper configuration of the repository, simply follow the Wizard instructions.
In your 1st step, you download the repository home page, which does not make sense.
Notice: you have the choice between
php-pecl-imagick-im6 which use ImageMagick version 6
php-pecl-imagick-im7 which use ImageMagick version 7
Provided APIs are slightly different
some methods are deprecated with IM6 and removed with IM7
additional methods available with IM7
P.S. yum install php-imagick (as explained by the wizard for all extensions) will work and install the better candidate.
I have some problems following the tutorial "http://wiki.ros.org/Industrial/Tutori...". I have installed ROS Melodic and i want to use an slave ethercat like the "IO rack: EtherCAT Couper, 8 DI, & 8DO (all Beckhoff)" but different brand (Omron), and when i try to follow the step 1: Install OROCOS toolchain for ROS it return a error when i follow the tutorial "http://wiki.ros.org/orocos_toolchain" and execute the command "rosdep install orocos_toolchain" the error is the next: ERROR: Rosdep cannot find all required resources to answer your query Missing resource orocos_toolchain.
I use ROS 1 Distro: melodic SO: Ubuntu 18:04
Someone can i help me, please. I was searching another ways to install OROCOS toolchain but i didn't have success.
Most of the readily available documentation for installing / using Orocos is out of date. For example, that page you were at is (at timeof writing) 6 years old, for an end-of-life distro.
The up-to-date info is on their github and website (The website, for you right now, is probably less useful, but this page still is). Respectively, you should now install that fat stack as sudo apt install ros-melodic-rtt-ros-integration, aka install from binary sources. Make sure to pay careful attention to Building ROS-Based Orocos Components, because they have their own system which changes the CMake process. There's also other packages that they/others keep from other stacks, you can see the whole list by trying to autocomplete apt install ros-melodic-rtt-
I've created a new MeanJS project using Yeoman. It installs just fine. When I want to add a new module using yo meanjs:angular-module mymodule, it tries to create a new project ("Which mean.js version would you like to generate") instead of just adding the new module.
Where should I look for errors?
I'm using node v0.12.7 and npm v2.11.3.
Yeah, I know this could be confusing, at least when you starting with Meanjs. You probably used a version greater than 0.3.0 (stable) and sub-generators like yo meanjs:angular-module are only available (by that time of writing this) with version 0.3.0 (stable). Look at the red message top at this page: http://meanjs.org/generator.html What's confusing here is that they recommended on their page to install the application using the yeoman but after you did that you expect to be able to use sub-generators... If you want use subs, please use 0.3.0. and I suggest you to use supported Node.js and npm versions (http://meanjs.org/docs/0.3.x/#troubleshooting):
MongoDB
MongoDB version 2.4.x is supported.
Node.js
Node version 0.10.x is supported.
npm
npm version 1.3.x is supported.
I used generator-angular a few months ago to scaffold a project and the whole ecosystem (karma, Node versions, grunt packages) has moved on quite significantly. I keep running into problems running tests, building things, and so on.
I know I can use nvm to downgrade my Node version and install older packages, but that kind of sucks, especially when there are many developers on the team. I have used the generators for 10+ projects over the past few months so I'm very interested in a solution.
Is there a recommended upgrade path for when new versions of generators are released, apart from just regenerating the project and copying files across?
(Just to note: this isn't a problem with upgrading a Yeoman 0.9 project.)
First make sure you have committed everything or have a backup, then just scaffold out over the project again. yo will ask you for each file if you want to overwrite. For those files you haven't edited, just say yes. For the other ones, type d for diff and see what's changed. Then manually do the changes, and run npm install & bower install to get the latest dependencies.
EDIT
As mentionned in comments by Markus Gattol :
yo <generator-name> now already run bower install & npm install i.e. no need to run them explicitly again – Markus Gattol
I've created a Yeoman generator and want my team to use it.
What happens if I update my generator on Github? They installed the generator locally in an older version. Do they always have to install again to get the latest version?
Team members don't know when updates happen and I don't want them to care too much about it. I just would like for them to use the latest version of the generator.
What is the suggested way of updating generators?
Thanks
Glad you asked!
Starting with Yeoman RC1, which will be announced later today, there's a brand new way to manage your generators: Just enter yo and enjoy the new wizard:
If you select "Update Generators" from the menu, yo yo will take care of bringing them all to the latest version.
If you are a generator author and want to go one step further to make sure your users are always up-to-date, you can use update-notifier from the Yeoman project to greet users with a notification if they run an obsolete version.
If you want to update a specific generator you can run
npm update generator-mygenerator -g
Nice if you have many generators installed.
In linux I had trouble of upgrading using the yoeman cli because of some permission issues
So instead I did the following
In my case it was
sudo npm install -g generator-your-generator-name
This automatically reinstalled the latests version
You could try
npm install -g generator-your-generator-name