how do you set your version of dart via pub? - dart

I wasnt sure if i need to update it through their website or something, or if it is possible do call some sort of dart version command which will update DART to be a particular version.
Example: Dart is either 1.14, or 1.16. If i want to do it through pub, is there a way to do something like: pub set dart 1.15 or something. I know set isnt a valid command, but i think you get the jist.

This depends on your operating system and what system you use to install Dart.
For Debian you can use apt-get install dart. apt-get allows to pass a specific version number.
For installation options see https://www.dartlang.org/downloads/
In pubspec.yaml you can only specify what DART SDK version and dependency versions are supported by a package but it doesn't have and influence which Dart SDK version gets installed.

Related

Upgrade Imagick from 3.5.1 to 3.6.0 on Centos7

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.

Buildozer not using correct kivy version when packaging for android

I am having a couple of problems packaging my Kivy app for android which may, or may not be related:
The only packages my app imports other than Kivy, are the time, and math modules. When I add either or both of them to the requirements in the buildozer spec file, I get a "pip._internal.exceptions.DistributionNotFound: No matching distribution for time." error. When I don't include them in my requirements, the build is successful, but crashes upon open with the error:
"Exception: The version of Kivy installed on this system is too old. (You have 1.11.1, but the application requires 2.0.0)"
I am doing the install in a VirutalBox on Ubuntu, and have followed the installation procedure outlined in the Kivy, and Buildozer documentation, as well as following a tutorial by Eric Sandberg on YouTube. I have set the Kivy version in the buildozer spec file, and installed Kivy 2.0.0 on the VM using pip. When I pip freeze, it shows the correct version of Kivy. One thing I have noticed is the when I try and install it with "apt-get install python3-kivy", it says kivy 1.10 is installed and that this is the most up to date version.
This seems like an easy problem to address but I have cannot figure out why it is trying to use this version of Kivy! Please let me know if any other information is required to debug. The spec file is hardly changed, other then specifying Kivy=2.0.0 in requirements.
Here are the logs:
Here are the requirements:
You don't have to add math and time in requirements of your buildozer.spec file as they are inbuild modules in python. So, they will automatically get added when you add python3 in your requirements.
To use a newer versio version of kivy you have to specify it in your requirements. In requirements you have to add like requirements=python3,kivy==2.0.0rc4 or any other version you want to use. Also, after changing requirements you might have to rebuild you package. You have to delete .buildozer directory and again run the buildozer using buildozer android debug deploy run

Why can't I install this aqueduct

Why can't I install this aqueduct?
Although I have installed dart before as shown in the picture:
It's important to ensure that the dart SDK is in the PATH. You can easily test it by trying to use pub or dart.
One way to ensure it's in the PATH is by creating a .bashrc file in your user's folder.
Then add the following:
export PATH="$PATH:/path/to/dart/installation/bin/folder"
First of all check if dart is installed using dart --version if it gives a command not found error that means it is not installed (hence why you cannot install aqueduct since it requires pub which is shipped with the dart sdk).
To install dart on macOS first install brew and the follow the instruction here https://dart.dev/get-dart (don't run brew switch dart 2.1.0 as shown in the screenshot since it makes no sense because current the latest stable is 2.9.1 and 2.1.0 is pretty old).
If you don't want to install brew you can download the sdk here (for your system) extract it, and update your path variable as #gabriel-octávio says.

Change Dart VM version

I want to use the stable release of the sdk, which should be 2.2.0, but when I in the console check the version with the command "dart --version", it says I am running "Dart VM version: 2.1.0".
I have tried to upgrade via choco, and it says that I already have 2.2.0 installed.
Do I have multiple versions av Dart installed and can switch between them?
If so, can I set a default version?
I'll just mark this as answered with the comment of jamsdlin, as it was the correct answer for me.
When you run dart, you'll run whichever dart binary is found first in your search PATH. You have multiple versions installed. Uninstall the old version or modify PATH so that the location for 2.2.0 occurs first.

yo meanjs not recognizing generated project

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.

Resources