This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
/** |
|
* Copyright (c) 2015-present, Facebook, Inc. |
|
* |
|
* This source code is licensed under the MIT license found in the |
|
* LICENSE file in the root directory of this source tree. |
|
*/ |
|
'use strict'; |
|
|
|
var chalk = require('chalk'); |
|
var formatBanner = require('metro-core/src/formatBanner'); |
|
var semver = require('semver'); |
|
|
|
module.exports = function() { |
|
if (!semver.satisfies(process.version, '>=4')) { |
|
var engine = semver.satisfies(process.version, '<1') |
|
? 'Node' |
|
: 'io.js'; |
|
|
|
var message = 'You are currently running ' + engine + ' ' + |
|
process.version + '.\n' + |
|
'\n' + |
|
'React Native runs on Node 4.0 or newer. There are several ways to ' + |
|
'upgrade Node.js depending on your preference.\n' + |
|
'\n' + |
|
'nvm: nvm install node && nvm alias default node\n' + |
|
'Homebrew: brew unlink iojs; brew install node\n' + |
|
'Installer: download the Mac .pkg from https://nodejs.org/\n' + |
|
'\n' + |
|
'About Node.js: https://nodejs.org\n' + |
|
'Follow along at: https://github.com/facebook/react-native/issues/2545'; |
|
console.log(formatBanner(message, { |
|
chalkFunction: chalk.green, |
|
marginLeft: 1, |
|
marginRight: 1, |
|
paddingBottom: 1, |
|
})); |
|
process.exit(1); |
|
} |
|
};
|
|
|