How to install Vapor 2 for Xcode 8.2.1 with Swift 3.1 - swift3

What I am trying to do
I am following the guide to Install Vapor on macOS https://docs.vapor.codes/2.0/getting-started/install-on-macos/
Verify Swift Installation
eval "$(curl -sL check.vapor.sh)"
supported Vapor v 2
Add Homebrew Tap
brew tap vapor/homebrew-tap
brew update
brew install vapor
Vapor Toolbox: 3.1.4 is installed
My info:
iMac (24-inch, Early 2009)
OS X El Capitan - Version 10.11.6
Xcode Version 8.2.1 (8C1002)
Toolchain: Swift 3.1 RELEASE 2017-03-27 (a)
https://swift.org/builds/swift-3.1-release/xcode/swift-3.1-RELEASE/swift-3.1-RELEASE-osx.pkg
** UPDATE **
I cloned two repositories https://github.com/vapor/api-template (b6c7df2) and https://github.com/vapor/web-template (d206163)
Now I can create a Vapor v2 with Swift 3.1 projects like this:
API Template
vapor new ApiTemplate --template=https://github.com/ValeriyKliuk/vapor-2-api-template
cd ApiTemplate/
vapor xcode -y
WEB Template
vapor new WebTemplate --template=https://github.com/ValeriyKliuk/vapor-2-web-template
cd WebTemplate/
vapor xcode -y

There is a difference between the toolbox and the framework. The toolbox is the CLI tool that runs various commands, the framework is the thing you actually build against. If you do vapor new MyProject that will create a Vapor 2 project
(Note - I'm pretty sure that Vapor 2 requires Swift 3.1)

Related

Expo EAS local build: Cannot find module '#expo/config-plugins'

With eas-cli version 0.52.0, the local build generates the apk as expected.
When using eas-cli version >= 0.53.0 I get the following error: Cannot find module '#expo/config-plugins'.
I use the following command as I always did: eas build --profile preview --platform android --local.
Any help? Thanks in advance.
I have the same issue using "expo": "^41.0.0"
I already install npx expo install expo-build-properties and it turns out the version of expo-build-properties is 0.4.1 so I think this version isn't compatible with either the expo version or other packages version so I tried to downgrade the version by editing package.json
so changing from
"expo-build-properties": "^0.4.1",
to
"expo-build-properties": "^0.3.0",
and run yarn install / npm install
Now the build run successful.
If you using "expo-build-properties" in your app.json/app.config.js/app.configInstall the package with npx expo install expo-build-properties to ensure you are using the correct version for your expo sdk.
I had similar problem I have resolved with this command
npx expo install expo-screen-orientation
issue was in versioning npx expo automatically downgraded my version of expo-screen-orientation
from version 5.0.1 to 4.0.3, after that the error was gone

How can i use expo cli with my smartphone on termux

Hello friends i'm new here.
I want to run react native project with my android but i got this error when i run expo cli on termux Error: Platform not supported
error illustration
Ps: i use TECNO SPARK 5 Pro with Android 10
I had the same problem. It was solved by reverting to version 4.2.1. Uninstall expo-cli and install expo-cli#4.2.1 .
You can create easyly by using simple trick
First you need to install one linus operating systeam (ubantu2.0) in your termux android application
*You can easyly install ubantu os with anylinux application just download from playstore *
After instaling the ubantu os in your android device then you need to install nodejs in your ubantu os inaide termux just type commend apt update && apt upgrade && apt install nodejs
After this commend you need to put one more command for instaling react -native(expo)
npm install -g expo-cli
If you face any problem then you need to upgrade your nodejs version with letest version with using nvm
Here is orginal documentation about letest version nodejs using nvm https://www.vultr.com/docs/install-nvm-and-node-js-on-ubuntu-20-04/

npm install -g ionic#latest is not upgrading to ionic 3.0.1

After installation i still don't see 3.0.1
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.2.1 Build version 8C1002
ionic install -g ionic#latest installs the latest ionic-cli package. This is version 2.2.3 currently as is also shown by your output of ionic info.
Just run
ionic start myapp [template]
You will notice the current ionic-angular version to be 3.x in the project's package.json.

Ionic 2 RC1 Issue: Content in assets folder not copied in Device run

When doing ionic run android and the assets folder is not getting copied to device.
In my case i have translation-files for ng2-translate in src/assets/i18n
When I do ionic serve, it all works well in browser, but not happening with Device.
Screenshot of
Resources tab of Chrome Dev tools
www/assets that is copied right from src
I followed this link https://github.com/driftyco/ionic-app-scripts/issues/1761
and did npm install #ionic/app-scripts#beta
My Ionic info
Cordova CLI: 6.3.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.36
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.2.6
Xcode version: Xcode 8.0 Build version 8A218a
With Ionic RC4 and corresponding ionic-app-scripts Upgrade, this issue is resolved.

Howto package a python2.7 project for installation on Centos 6

How do I package a python2.7 project for installation on CentOS 6.7?
I plan on deploying a python2.7 package onto CentOS 6.7 systems that have had python2.7 installed from SCL along side the python2.6 needed for the system (as per this question).
So far, I've tried
using distutils on a CentOS 6.7 machine to make an rpm (bdist_rpm) -- but that's tyring to use python 2.6.
using distutils to make an rpm on a different machine with python2.7 only installed -- the resulting rpm cannot be installed since rpm on the CentOS machine assumes python2.6