GeorgeIoak

Untitled

Jan 13th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. wget https://nodejs.org/dist/v10.15.0/node-v10.15.0-linux-armv7l.tar.xz
  2. tar -xvf node-v10.15.0-linux-armv7l.tar.xz
  3. cd node-v10.15.0-linux-armv7l/
  4. rm CHANGELOG.md LICENSE README.md
  5. sudo cp -R * /usr/local
  6. cd mocktuyacloud/
  7.  
  8.  
  9. pi@raspberrypi:~/mocktuyacloud $ sudo npm install -g npm
  10. /usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
  11. /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
  12. updated 1 package in 30.33s
  13. pi@raspberrypi:~/mocktuyacloud $ sudo ./install.sh
  14. Installing NPM dependencies...
  15.  
  16. > [email protected] install /home/pi/mocktuyacloud/node_modules/fs-ext
  17. > node-gyp configure build
  18.  
  19. gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
  20. gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/fs-ext/.node-gyp"
  21. gyp WARN install got an error, rolling back install
  22. gyp WARN install got an error, rolling back install
  23. gyp ERR! configure error
  24. gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/fs-ext/.node-gyp'
  25. gyp ERR! System Linux 4.14.79-v7+
  26. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
  27. gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/fs-ext
  28. gyp ERR! node -v v10.15.0
  29. gyp ERR! node-gyp -v v3.8.0
  30. gyp ERR! not ok
  31.  
  32. > [email protected] install /home/pi/mocktuyacloud/node_modules/snappy
  33. > node-gyp rebuild
  34.  
  35. gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
  36. gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/snappy/.node-gyp"
  37. gyp WARN install got an error, rolling back install
  38. gyp WARN install got an error, rolling back install
  39. gyp ERR! configure error
  40. gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/snappy/.node-gyp'
  41. gyp ERR! System Linux 4.14.79-v7+
  42. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  43. gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/snappy
  44. gyp ERR! node -v v10.15.0
  45. gyp ERR! node-gyp -v v3.8.0
  46. gyp ERR! not ok
  47.  
  48. > [email protected] install /home/pi/mocktuyacloud/node_modules/zmq
  49. > node-gyp rebuild
  50.  
  51. gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
  52. gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/mocktuyacloud/node_modules/zmq/.node-gyp"
  53. gyp WARN install got an error, rolling back install
  54. gyp WARN install got an error, rolling back install
  55. gyp ERR! configure error
  56. gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/mocktuyacloud/node_modules/zmq/.node-gyp'
  57. gyp ERR! System Linux 4.14.79-v7+
  58. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  59. gyp ERR! cwd /home/pi/mocktuyacloud/node_modules/zmq
  60. gyp ERR! node -v v10.15.0
  61. gyp ERR! node-gyp -v v3.8.0
  62. gyp ERR! not ok
  63. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fs-ext):
  64. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp configure build`
  65. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
  66. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/snappy):
  67. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
  68. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
  69. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/zmq):
  70. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
  71. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
  72.  
  73. audited 1956 packages in 24.216s
  74. found 3 vulnerabilities (2 low, 1 moderate)
  75. run `npm audit fix` to fix them, or `npm audit` for details
  76. Downloading firmware...
  77. --2019-01-13 19:41:04-- https://github.com/mirko/SonOTA/raw/master/static/image_user2-0x81000.bin
  78. Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
  79. Connecting to github.com (github.com)|192.30.255.112|:443... connected.
  80. HTTP request sent, awaiting response... 302 Found
  81. Location: https://raw.githubusercontent.com/mirko/SonOTA/master/static/image_user2-0x81000.bin [following]
  82. --2019-01-13 19:41:04-- https://raw.githubusercontent.com/mirko/SonOTA/master/static/image_user2-0x81000.bin
  83. Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.40.133
  84. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.40.133|:443... connected.
  85. HTTP request sent, awaiting response... 200 OK
  86. Length: 239220 (234K) [application/octet-stream]
  87. Saving to: ‘image_user2-0x81000.bin.1’
  88.  
  89. image_user2-0x81000.bin.1 100%[===================================================================================================================================>] 233.61K --.-KB/s in 0.06s
  90.  
  91. 2019-01-13 19:41:09 (3.53 MB/s) - ‘image_user2-0x81000.bin.1’ saved [239220/239220]
  92.  
  93. --2019-01-13 19:41:09-- https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.2.1/sonoff.bin
  94. Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
  95. Connecting to github.com (github.com)|192.30.255.112|:443... connected.
  96. HTTP request sent, awaiting response... 302 Found
  97. 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]
  98. --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
  99. Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.131.67
  100. Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.131.67|:443... connected.
  101. HTTP request sent, awaiting response... 200 OK
  102. Length: 482512 (471K) [application/octet-stream]
  103. Saving to: ‘sonoff.bin.1’
  104.  
  105. sonoff.bin.1 100%[===================================================================================================================================>] 471.20K 1.37MB/s in 0.3s
  106.  
  107. 2019-01-13 19:41:11 (1.37 MB/s) - ‘sonoff.bin.1’ saved [482512/482512]
  108.  
  109. Installing create_ap...
  110. fatal: destination path 'create_ap' already exists and is not an empty directory.
  111. install -Dm755 create_ap /usr/bin/create_ap
  112. install -Dm644 create_ap.conf /etc/create_ap.conf
  113. [ ! -d /lib/systemd/system ] || install -Dm644 create_ap.service /usr/lib/systemd/system/create_ap.service
  114. install -Dm644 bash_completion /usr/share/bash-completion/completions/create_ap
  115. install -Dm644 README.md /usr/share/doc/create_ap/README.md
Advertisement
Add Comment
Please, Sign In to add comment