Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wget https://nodejs.org/dist/v10.15.0/node-v10.15.0-linux-armv7l.tar.xz
- tar -xvf node-v10.15.0-linux-armv7l.tar.xz
- cd node-v10.15.0-linux-armv7l/
- rm CHANGELOG.md LICENSE README.md
- sudo cp -R * /usr/local
- cd mocktuyacloud/
- pi@raspberrypi:~/mocktuyacloud $ sudo npm install -g npm
- /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
- /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
- updated 1 package in 30.33s
- pi@raspberrypi:~/mocktuyacloud $ sudo ./install.sh
- Installing NPM dependencies...
- > [email protected] install /home/pi/mocktuyacloud/node_modules/fs-ext
- > node-gyp configure build
- gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
- gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/fs-ext/.node-gyp"
- gyp WARN install got an error, rolling back install
- gyp WARN install got an error, rolling back install
- gyp ERR! configure error
- gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/fs-ext/.node-gyp'
- gyp ERR! System Linux 4.14.79-v7+
- gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
- gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/fs-ext
- gyp ERR! node -v v10.15.0
- gyp ERR! node-gyp -v v3.8.0
- gyp ERR! not ok
- > [email protected] install /home/pi/mocktuyacloud/node_modules/snappy
- > node-gyp rebuild
- gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
- gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/snappy/.node-gyp"
- gyp WARN install got an error, rolling back install
- gyp WARN install got an error, rolling back install
- gyp ERR! configure error
- gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/snappy/.node-gyp'
- gyp ERR! System Linux 4.14.79-v7+
- gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
- gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/snappy
- gyp ERR! node -v v10.15.0
- gyp ERR! node-gyp -v v3.8.0
- gyp ERR! not ok
- > [email protected] install /home/pi/mocktuyacloud/node_modules/zmq
- > node-gyp rebuild
- gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
- gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/zmq/.node-gyp"
- gyp WARN install got an error, rolling back install
- gyp WARN install got an error, rolling back install
- gyp ERR! configure error
- gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/zmq/.node-gyp'
- gyp ERR! System Linux 4.14.79-v7+
- gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
- gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/zmq
- gyp ERR! node -v v10.15.0
- gyp ERR! node-gyp -v v3.8.0
- gyp ERR! not ok
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fs-ext):
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp configure build`
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/snappy):
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/zmq):
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
- audited 1956 packages in 24.216s
- found 3 vulnerabilities (2 low, 1 moderate)
- run `npm audit fix` to fix them, or `npm audit` for details
- Downloading firmware...
- --2019-01-13 19:41:04-- https://github.com/mirko/SonOTA/raw/master/static/image_user2-0x81000.bin
- Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
- Connecting to github.com (github.com)|192.30.255.112|:443... connected.
- HTTP request sent, awaiting response... 302 Found
- Location: https://raw.githubusercontent.com/mirko/SonOTA/master/static/image_user2-0x81000.bin [following]
- --2019-01-13 19:41:04-- https://raw.githubusercontent.com/mirko/SonOTA/master/static/image_user2-0x81000.bin
- Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.40.133
- Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.40.133|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 239220 (234K) [application/octet-stream]
- Saving to: ‘image_user2-0x81000.bin.1’
- image_user2-0x81000.bin.1 100%[===================================================================================================================================>] 233.61K --.-KB/s in 0.06s
- 2019-01-13 19:41:09 (3.53 MB/s) - ‘image_user2-0x81000.bin.1’ saved [239220/239220]
- --2019-01-13 19:41:09-- https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.2.1/sonoff.bin
- Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
- Connecting to github.com (github.com)|192.30.255.112|:443... connected.
- HTTP request sent, awaiting response... 302 Found
- Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/80286288/8925e180-b473-11e8-8f12-30067832706c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190114T034110Z&X-Amz-Expires=300&X-Amz-Signature=842fdd00e24e951fae6aab91bd07b2ac4da1083e2cae9be55fc23fe2d29e330c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsonoff.bin&response-content-type=application%2Foctet-stream [following]
- --2019-01-13 19:41:10-- https://github-production-release-asset-2e65be.s3.amazonaws.com/80286288/8925e180-b473-11e8-8f12-30067832706c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190114T034110Z&X-Amz-Expires=300&X-Amz-Signature=842fdd00e24e951fae6aab91bd07b2ac4da1083e2cae9be55fc23fe2d29e330c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dsonoff.bin&response-content-type=application%2Foctet-stream
- Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.131.67
- Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.131.67|:443... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 482512 (471K) [application/octet-stream]
- Saving to: ‘sonoff.bin.1’
- sonoff.bin.1 100%[===================================================================================================================================>] 471.20K 1.37MB/s in 0.3s
- 2019-01-13 19:41:11 (1.37 MB/s) - ‘sonoff.bin.1’ saved [482512/482512]
- Installing create_ap...
- fatal: destination path 'create_ap' already exists and is not an empty directory.
- install -Dm755 create_ap /usr/bin/create_ap
- install -Dm644 create_ap.conf /etc/create_ap.conf
- [ ! -d /lib/systemd/system ] || install -Dm644 create_ap.service /usr/lib/systemd/system/create_ap.service
- install -Dm644 bash_completion /usr/share/bash-completion/completions/create_ap
- install -Dm644 README.md /usr/share/doc/create_ap/README.md
Advertisement
Add Comment
Please, Sign In to add comment