반응형
ubuntu@ubuntu:~/MM$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

## Installing the NodeSource Node.js 10.x repo...


## Populating apt-get cache...

+ apt-get update
Hit:1 http://packages.ros.org/ros2/ubuntu focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [101 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [109 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 DEP-11 Metadata [236 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 DEP-11 Metadata [204 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 DEP-11 Metadata [1,768 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 DEP-11 Metadata [24.3 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 DEP-11 Metadata [56.6 kB]
Fetched 847 kB in 4s (206 kB/s)
Reading package lists... Done

## Confirming "focal" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/focal/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 10.x repo...

+ echo 'deb https://deb.nodesource.com/node_10.x focal main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_10.x focal main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://packages.ros.org/ros2/ubuntu focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Get:6 https://deb.nodesource.com/node_10.x focal InRelease [4,583 B]
Get:7 https://deb.nodesource.com/node_10.x focal/main arm64 Packages [769 B]
Fetched 5,352 B in 3s (1,646 B/s)
Reading package lists... Done

## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn


ubuntu@ubuntu:~/MM$ sudo apt-get install -y nodejs  gcc g++ make
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
gcc set to manually installed.
make is already the newest version (4.2.1-1.2).
make set to manually installed.
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 15.5 MB of archives.
After this operation, 81.7 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_10.x focal/main arm64 nodejs arm64 10.23.0-deb-1nodesource1 [15.5 MB]
Fetched 15.5 MB in 7s (2,288 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 325576 files and directories currently installed.)
Preparing to unpack .../nodejs_10.23.0-deb-1nodesource1_arm64.deb ...
Unpacking nodejs (10.23.0-deb-1nodesource1) ...
Setting up nodejs (10.23.0-deb-1nodesource1) ...
Processing triggers for man-db (2.9.1-1) ...
ubuntu@ubuntu:~/MM$                      
ubuntu@ubuntu:~/MM$ git clone https://github.com/MichMich/MagicMirror
Cloning into 'MagicMirror'...
remote: Enumerating objects: 16607, done.
remote: Total 16607 (delta 0), reused 0 (delta 0), pack-reused 16607
Receiving objects: 100% (16607/16607), 15.98 MiB | 3.10 MiB/s, done.
Resolving deltas: 100% (9905/9905), done.
ubuntu@ubuntu:~/MM$ ls -al
total 12
drwxrwxr-x  3 ubuntu ubuntu 4096 Dec  1 13:12 .
drwxr-xr-x 20 ubuntu ubuntu 4096 Dec  1 13:09 ..
drwxrwxr-x 16 ubuntu ubuntu 4096 Dec  1 13:12 MagicMirror
ubuntu@ubuntu:~/MM$
ubuntu@ubuntu:~/MM$ cd MagicMirror/
ubuntu@ubuntu:~/MM/MagicMirror$ ls -al
total 544
drwxrwxr-x 16 ubuntu ubuntu   4096 Dec  1 13:12 .
drwxrwxr-x  3 ubuntu ubuntu   4096 Dec  1 13:12 ..
-rw-rw-r--  1 ubuntu ubuntu  45549 Dec  1 13:12 CHANGELOG.md
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 clientonly
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 config
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 css
-rw-rw-r--  1 ubuntu ubuntu    860 Dec  1 13:12 dangerfile.js
-rw-rw-r--  1 ubuntu ubuntu    238 Dec  1 13:12 .editorconfig
-rw-rw-r--  1 ubuntu ubuntu     34 Dec  1 13:12 .eslintignore
-rw-rw-r--  1 ubuntu ubuntu    563 Dec  1 13:12 .eslintrc.json
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 fonts
drwxrwxr-x  8 ubuntu ubuntu   4096 Dec  1 13:12 .git
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 .github
-rw-rw-r--  1 ubuntu ubuntu   1009 Dec  1 13:12 .gitignore
-rw-rw-r--  1 ubuntu ubuntu   2674 Dec  1 13:12 index.html
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 installers
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 js
-rw-rw-r--  1 ubuntu ubuntu    264 Dec  1 13:12 jsconfig.json
-rw-rw-r--  1 ubuntu ubuntu   1098 Dec  1 13:12 LICENSE.md
drwxrwxr-x  3 ubuntu ubuntu   4096 Dec  1 13:12 modules
-rw-rw-r--  1 ubuntu ubuntu   1040 Dec  1 13:12 module-types.ts
-rw-rw-r--  1 ubuntu ubuntu   3321 Dec  1 13:12 package.json
-rw-rw-r--  1 ubuntu ubuntu 379597 Dec  1 13:12 package-lock.json
-rw-rw-r--  1 ubuntu ubuntu     63 Dec  1 13:12 .prettierignore
-rw-rw-r--  1 ubuntu ubuntu     29 Dec  1 13:12 .prettierrc.json
-rw-rw-r--  1 ubuntu ubuntu   3612 Dec  1 13:12 README.md
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 serveronly
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 splashscreen
-rw-rw-r--  1 ubuntu ubuntu    131 Dec  1 13:12 .stylelintrc.json
drwxrwxr-x  7 ubuntu ubuntu   4096 Dec  1 13:12 tests
drwxrwxr-x  2 ubuntu ubuntu   4096 Dec  1 13:12 translations
-rw-rw-r--  1 ubuntu ubuntu    433 Dec  1 13:12 .travis.yml
drwxrwxr-x  3 ubuntu ubuntu   4096 Dec  1 13:12 vendor
ubuntu@ubuntu:~/MM/MagicMirror$ cat package.json
{
        "name": "magicmirror",
        "version": "2.13.0",
        "description": "The open source modular smart mirror platform.",
        "main": "js/electron.js",
        "scripts": {
                "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
                "server": "node ./serveronly",
                "install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error",
                "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error",
                "postinstall": "npm run install-fonts && echo \"MagicMirror installation finished successfully! \n\"",
                "test": "NODE_ENV=test mocha tests --recursive",
                "test:coverage": "NODE_ENV=test nyc mocha tests --recursive --timeout=3000",
                "test:e2e": "NODE_ENV=test mocha tests/e2e --recursive",
                "test:unit": "NODE_ENV=test mocha tests/unit --recursive",
                "test:prettier": "prettier --check **/*.{js,css,json,md,yml}",
                "test:js": "eslint *.js js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
                "test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
                "test:calendar": "node ./modules/default/calendar/debug.js",
                "config:check": "node js/check_config.js",
                "lint:prettier": "prettier --write **/*.{js,css,json,md,yml}",
                "lint:js": "eslint *.js js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix",
                "lint:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix"
        },
        "repository": {
                "type": "git",
                "url": "git+https://github.com/MichMich/MagicMirror.git"
        },
        "keywords": [
                "magic mirror",
                "smart mirror",
                "mirror UI",
                "modular"
        ],
        "author": "Michael Teeuw",
        "contributors": [
                "https://github.com/MichMich/MagicMirror/graphs/contributors"
        ],
        "license": "MIT",
        "bugs": {
                "url": "https://github.com/MichMich/MagicMirror/issues"
        },
        "homepage": "https://magicmirror.builders",
        "devDependencies": {
                "chai": "^4.2.0",
                "chai-as-promised": "^7.1.1",
                "danger": "^3.1.3",
                "eslint-config-prettier": "^6.11.0",
                "eslint-plugin-jsdoc": "^30.5.1",
                "eslint-plugin-prettier": "^3.1.4",
                "http-auth": "^3.2.3",
                "husky": "^4.3.0",
                "jsdom": "^11.6.2",
                "lodash": "^4.17.20",
                "mocha": "^7.1.2",
                "mocha-each": "^2.0.1",
                "mocha-logger": "^1.0.6",
                "nyc": "^15.1.0",
                "prettier": "^2.1.2",
                "pretty-quick": "^3.0.2",
                "spectron": "^8.0.0",
                "stylelint": "^13.7.1",
                "stylelint-config-prettier": "^8.0.2",
                "stylelint-config-standard": "^20.0.0",
                "stylelint-prettier": "^1.1.2"
        },
        "optionalDependencies": {
                "electron": "^6.1.7"
        },
        "dependencies": {
                "colors": "^1.4.0",
                "console-stamp": "^0.2.9",
                "eslint": "^7.9.0",
                "express": "^4.17.1",
                "express-ipfilter": "^1.1.2",
                "feedme": "^1.2.0",
                "helmet": "^3.23.3",
                "ical": "^0.8.0",
                "iconv-lite": "^0.6.2",
                "module-alias": "^2.2.2",
                "moment": "^2.28.0",
                "node-ical": "^0.12.0",
                "request": "^2.88.2",
                "rrule": "^2.6.6",
                "rrule-alt": "^2.2.8",
                "simple-git": "^1.85.0",
                "socket.io": "^2.3.0",
                "valid-url": "^1.0.9"
        },
        "_moduleAliases": {
                "node_helper": "js/node_helper.js"
        },
        "husky": {
                "hooks": {
                        "pre-commit": "pretty-quick --staged"
                }
        }
}
ubuntu@ubuntu:~/MM/MagicMirror$

ubuntu@ubuntu:~/MM/MagicMirror$ npm install

> electron-chromedriver@6.0.0 install /home/ubuntu/MM/MagicMirror/node_modules/electron-chromedriver
> node ./download-chromedriver.js


> husky@4.3.0 install /home/ubuntu/MM/MagicMirror/node_modules/husky
> node husky install

husky > Setting up git hooks
husky > Done

> core-js@2.6.11 postinstall /home/ubuntu/MM/MagicMirror/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js-pure@3.6.5 postinstall /home/ubuntu/MM/MagicMirror/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"


> console-stamp@0.2.9 postinstall /home/ubuntu/MM/MagicMirror/node_modules/console-stamp
> node ./msg.js

Attention
    Console-stamp version 3.0.0 Release Candidate is out. Install by using the tag '@next'. NB: Breaking changes.
    For more details goto: https://www.npmjs.com/package/console-stamp/v/next


> electron@6.1.12 postinstall /home/ubuntu/MM/MagicMirror/node_modules/electron
> node install.js

Downloading tmp-8369-1-SHASUMS256.txt-6.1.12
[============================================>] 100.0% of 5.62 kB (5.62 kB/s)

> husky@4.3.0 postinstall /home/ubuntu/MM/MagicMirror/node_modules/husky
> opencollective-postinstall || exit 0

Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate


> magicmirror@2.13.0 install /home/ubuntu/MM/MagicMirror
> echo "Installing vendor files ...
" && cd vendor && npm install --loglevel=error

Installing vendor files ...

added 23 packages from 34 contributors and audited 24 packages in 4.242s

1 package is looking for funding
  run `npm fund` for details

found 0 vulnerabilities


> magicmirror@2.13.0 postinstall /home/ubuntu/MM/MagicMirror
> npm run install-fonts && echo "MagicMirror installation finished successfully!
"


> magicmirror@2.13.0 install-fonts /home/ubuntu/MM/MagicMirror
> echo "Installing fonts ...
" && cd fonts && npm install --loglevel=error

Installing fonts ...

added 1 package from 1 contributor and audited 1 package in 1.324s
found 0 vulnerabilities

MagicMirror installation finished successfully!

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})

added 1160 packages from 1097 contributors and audited 1163 packages in 481.302s

85 packages are looking for funding
  run `npm fund` for details

found 3 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details


ubuntu@ubuntu:~/MM/MagicMirror$ cp config/config.js.sample config/config.js
ubuntu@ubuntu:~/MM/MagicMirror$





ubuntu@ubuntu:~/MM/MagicMirror$ npm run start 
하면 뜬다.

 

반응형

'Programing 미분류' 카테고리의 다른 글

NVS (Node Version Switcher)  (0) 2020.12.10
dbus, pkg-config  (0) 2019.08.26
netrc 자동 로그인 ssh, ftp, github  (0) 2019.05.15
Posted by Real_G