Guest User

Untitled

a guest
Aug 19th, 2018
216
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. added 372 packages, removed 295 packages, updated 41 packages and moved 68 packages in 279.31s
  73. pi@raspbuntu:~$ npm -v
  74. 6.4.0
  75. pi@raspbuntu:~$ sudo npm install -g --unsafe-perm node-red
  76. npm WARN deprecated [email protected]: Mailparser versions older than v2.3.0 are deprecated
  77. npm WARN deprecated [email protected]: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
  78. npm WARN deprecated [email protected]: This project is unmaintained
  79. npm WARN deprecated [email protected]: This project is unmaintained
  80. npm WARN deprecated [email protected]: This project is unmaintained
  81. /usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js
  82. /usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi
  83.  
  84. > [email protected] install /usr/lib/node_modules/node-red/node_modules/bcrypt
  85. > node-pre-gyp install --fallback-to-build
  86.  
  87. node-pre-gyp ERR! Completion callback never invoked!
  88. node-pre-gyp ERR! System Linux 4.4.0-93-generic
  89. 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"
  90. node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red/node_modules/bcrypt
  91. node-pre-gyp ERR! node -v v8.11.4
  92. node-pre-gyp ERR! node-pre-gyp -v v0.9.1
  93. node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
  94. node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
  95. node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
  96. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/node-red/node_modules/bcrypt):
  97. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
  98. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 6
  99.  
  100. added 306 packages from 317 contributors in 296.093s
Advertisement
Add Comment
Please, Sign In to add comment