Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.15 KB | None | 0 0
  1. pi@raspbuntu:~$ curl -sL https://deb.nodesource.com/setup_8.x > nodesetup.sh
  2. pi@raspbuntu:~$ sudo bash nodesetup.sh
  3.  
  4. ## Installing the NodeSource Node.js 8.x LTS Carbon repo...
  5.  
  6.  
  7. ## Populating apt-get cache...
  8.  
  9. + apt-get update
  10. Trovato:1 https://deb.nodesource.com/node_8.x xenial InRelease
  11. Trovato:2 http://it.archive.ubuntu.com/ubuntu xenial InRelease
  12. Trovato:4 http://it.archive.ubuntu.com/ubuntu xenial-updates InRelease
  13. Trovato:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
  14. Trovato:6 http://it.archive.ubuntu.com/ubuntu xenial-backports InRelease
  15. Lettura elenco dei pacchetti... Fatto
  16.  
  17. ## Confirming "xenial" is supported...
  18.  
  19. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_8.x/dists/xenial/Release'
  20.  
  21. ## Adding the NodeSource signing key to your keyring...
  22.  
  23. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
  24. OK
  25.  
  26. ## Creating apt sources list file for the NodeSource Node.js 8.x LTS Carbon repo...
  27.  
  28. + echo 'deb https://deb.nodesource.com/node_8.x xenial main' > /etc/apt/sources.list.d/nodesource.list
  29. + echo 'deb-src https://deb.nodesource.com/node_8.x xenial main' >> /etc/apt/sources.list.d/nodesource.list
  30.  
  31. ## Running `apt-get update` for you...
  32.  
  33. + apt-get update
  34. Trovato:1 https://deb.nodesource.com/node_8.x xenial InRelease
  35. Trovato:2 http://it.archive.ubuntu.com/ubuntu xenial InRelease
  36. Trovato:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
  37. Trovato:4 http://it.archive.ubuntu.com/ubuntu xenial-updates InRelease
  38. Trovato:6 http://it.archive.ubuntu.com/ubuntu xenial-backports InRelease
  39. Lettura elenco dei pacchetti... Fatto
  40.  
  41. ## Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm
  42. ## You may also need development tools to build native addons:
  43.      sudo apt-get install gcc g++ make
  44. ## To install the Yarn package manager, run:
  45.      curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  46.      echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  47.      sudo apt-get update && sudo apt-get install yarn
  48.  
  49.  
  50. pi@raspbuntu:~$ sudo apt-get install -y nodejs
  51. Lettura elenco dei pacchetti... Fatto
  52. Generazione albero delle dipendenze
  53. Lettura informazioni sullo stato... Fatto
  54. I seguenti pacchetti saranno aggiornati:
  55.   nodejs
  56. 1 aggiornati, 0 installati, 0 da rimuovere e 253 non aggiornati.
  57. È necessario scaricare 13,7 MB di archivi.
  58. Dopo quest'operazione, verranno occupati 17,1 MB di spazio su disco.
  59. Scaricamento di:1 https://deb.nodesource.com/node_8.x xenial/main amd64 nodejs amd64 8.11.4-1nodesource1 [13,7 MB]
  60. Recuperati 13,7 MB in 5min 34s (40,8 kB/s)
  61. (Lettura del database... 113124 file e directory attualmente installati.)
  62. Preparativi per estrarre .../nodejs_8.11.4-1nodesource1_amd64.deb...
  63. Detected old npm client, removing...
  64. Estrazione di nodejs (8.11.4-1nodesource1) su (6.11.2-1nodesource1~xenial1)...
  65. Elaborazione dei trigger per man-db (2.7.5-1)...
  66. Configurazione di nodejs (8.11.4-1nodesource1)...
  67. pi@raspbuntu:~$ sudo npm install -g npm node-gyp node-pre-gyp
  68. /usr/bin/node-gyp -> /usr/lib/node_modules/node-gyp/bin/node-gyp.js
  69. /usr/bin/node-pre-gyp -> /usr/lib/node_modules/node-pre-gyp/bin/node-pre-gyp
  70. /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
  71. /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
  72. + node-gyp@3.8.0
  73. + node-pre-gyp@0.11.0
  74. + npm@6.4.0
  75. added 372 packages, removed 295 packages, updated 41 packages and moved 68 packages in 279.31s
  76. pi@raspbuntu:~$ npm -v
  77. 6.4.0
  78. pi@raspbuntu:~$ sudo npm install -g --unsafe-perm node-red
  79. npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
  80. npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
  81. npm WARN deprecated mimelib@0.3.1: This project is unmaintained
  82. npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
  83. npm WARN deprecated buildmail@2.0.0: This project is unmaintained
  84. /usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js
  85. /usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi
  86.  
  87. > bcrypt@2.0.1 install /usr/lib/node_modules/node-red/node_modules/bcrypt
  88. > node-pre-gyp install --fallback-to-build
  89.  
  90. node-pre-gyp ERR! Completion callback never invoked!
  91. node-pre-gyp ERR! System Linux 4.4.0-93-generic
  92. node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-red/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
  93. node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red/node_modules/bcrypt
  94. node-pre-gyp ERR! node -v v8.11.4
  95. node-pre-gyp ERR! node-pre-gyp -v v0.9.1
  96. node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
  97. node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
  98. node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
  99. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 (node_modules/node-red/node_modules/bcrypt):
  100. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@2.0.1 install: `node-pre-gyp install --fallback-to-build`
  101. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 6
  102.  
  103. + node-red@0.19.1
  104. added 306 packages from 317 contributors in 296.093s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement