Node.js : installation standalone

Posté le samedi 14 avril 2012 à 5 h 02, Read it in english with Google

nodejs-logo-lightAllez c’est partit pour un premier article rapide : comment installer Node.js en mode standalone, ou mode portable, c’est Ă  dire sans l’intĂ©grer au système.

Ceci peut vous permettre de le faire tourner sur des hĂ©bergement oĂą vous n’avez pas la main, si tant est que les librairies requises soient disponibles. Vous pouvez mĂŞme le compiler chez vous et l’exĂ©cuter sur le serveur si les noyaux sont semblables, car Nodejs n’a besoin de rien d’autre que lui mĂŞme pour tourner.

PrĂ©alablement, installez les librairies requises (ici on est sur Debian, je vous laisse vous reporter Ă  d’autre articles pour les diffĂ©rents systèmes):


Vous tĂ©lĂ©chargez la dernière version et vous la compilez, sans l’intĂ©grer au système (pas de make install):


Maintenant vous pouvez lancer Nodejs avec, tout simplement :


En ce qui concerne le gestionnaire de paquet de Nodejs : npm, c’est un peu plus compliquĂ©.

Il faut créer un script dans le répertoire de Node :

span class="st0">'#!/bin/sh
node=`dirname "$0"`/node
$node "`dirname "$0"`/deps/npm/bin/npm-cli.js" "$@"

Vous pouvez maintenant lancer npm avec la commande


Attention tout de mĂŞme avec les paquets installĂ©s globalement (avec l’option -G), ils se mettent dans le rĂ©pertoire au dessus. Mais la nouvelle phylosophie sur les paquets de node tend Ă  les distribuer localement, par application (dans le rĂ©pertoire node_modules Ă  la racine de votre app).

Au final, on pourrait même créer un script qui installe automatiquement la dernière version de Nodejs dans le répertoire /node et crée/met à jour des liens symboliques de node et npm dans ce même répertoire, pour pouvoir toujours garder Nodejs à jour.

Bon, j’ai encore des choses Ă  revoir dans ma mĂ©thode de rĂ©daction d’un article court.

42 réponses à “Node.js : installation standalone”

  1. Felix Pantaleon

    Believes that the USA poker market is in a much wanted transition part.

    The Black Friday occasion and the media frenzy that ensued
    were stepping stones in the direction of a regulated poker surroundings.
    And legalization could be across the corner. On October 25th 2011, a congressional hearing occurred on the Home Subcommittee on Commerce, Manufacturing and Commerce.

  2. bao da ipad

    After looking at a handful of the blog posts on your web page,
    I honestly like your way of writing a blog. I saved it to my bookmark site list and will
    be checking back soon. Please check out my web site too and let me know how you feel.

  3. iphone

    Your style is unique compared to other people I’ve read stuff from.
    Thanks for posting when you have the opportunity, Guess I will
    just book mark this site.

  4. Elvia

    Useful info. Lucky me I discovered your web site by chance,
    and I am shocked why this accident did not happened in advance!
    I bookmarked it.

  5. vis inox terrasse

    Bonjour. Cet article est très informatif. je voulais
    notamment des réponses sur le sujet. Merci

  6. Clash of Clans gemmes gratuites pour android

    I read this piece of writing completely about the comparison of most up-to-date
    and previous technologies, it’s amazing article.

  7. poker online

    If you desire to get much from this post then you have to apply these strategies to
    your won webpage.

  8. capsa susun online

    Hi, i believe that i noticed you visited my blog so i got
    here to return the prefer?.I’m trying to to find things to improve my website!I assume its ok to make use
    of a few of your concepts!!

  9. Master agen domino

    What’s up colleagues, its fantastic post regarding teachingand fully explained, keep it up all the

  10. Watch Jav HD Online Free

    Hey, I think your site might be having browser compatibility issues.
    When I look at your website in Chrome, it looks fine but when opening in Internet
    Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, great blog!

  11. ?i?n

    Ban ch? nhi?m b? mĂ´n Thi?t b? ?i?n – ?i?n t?.


    Great beat ! I would like to apprentice whilst you amend your site, how
    could i subscribe for a blog web site? The account helped me a appropriate deal.

    I were a little bit acquainted of this your broadcast
    provided bright clear concept

  13. Maxsimjoymn

    ?82.?? ???????? ???? ?????? ? ???????????, ?? ????????!


    I am truly delighted to glance at this website posts which carries lots of helpful information, thanks for providing these kinds of information.


    Having read this I thought it was really informative.
    I appreciate you spending some time and effort to put this content together.
    I once again find myself spending way too much time both reading and commenting.
    But so what, it was still worth it!

  16. BestBrodie

    I have noticed you don’t monetize your website, don’t waste your traffic,
    you can earn additional bucks every month. You can use the best adsense
    alternative for any type of website (they approve all websites), for
    more info simply search in gooogle: boorfe’s tips monetize your

  17. komory wodomierzowe

    Wow, this art?cle is good, my young?r sister is anal?zing thhese things, th?s I am going to let know her.

  18. luces led tiras

    This is the right webpage for anybody who really wants to find out
    about this topic. You understand so much its almost hard to argue with you (not that I
    personally would want to…HaHa). You certainly put
    a brand new spin on a topic which has been written about
    for many years. Excellent stuff, just great!

  19. blog

    Hi there to all, how is the whole thing, I think every one is getting more from this site, and your views are good in favor of new users.

  20. Ken Ocejo

    Rattling nice layout and good subject material , nothing at all else we need : D.

  21. ????? ???? ???????? ??????

    Hi co-workers, itss wonderful article on the topic off teachingand fully spelled out, keep it up all
    the time.

  22. ??? ??????? ?????? ????

    Do you mind if I quote a pair of your articles as lomg as I provide credit and sources back to your blog?

    blog is in the exact same area off interest as yours and my visittors would genuinely benefit from a lot
    of thee information you provide here. Please let me
    know if this ok with you. Thank you!

  23. husqvarna rasenroboter preis

    Schoene Seite, ich komme mal wieder vorbei.

  24. get high pr backlinks

    My brother suggested I would possibly like this web site.
    He was once totally right. This put up actually made
    my day. You can not imagine simply how a lot time I
    had spent for this info! Thank you!

  25. ?????? ?????? ???????

    ?ell?, i r?ad ?our blog every once in aawhile and i own a sim?lar one and i was ?ust curious
    if you ?et a lot ?f spam
    responses? If so how ?o ?ou protect against it, ?ny plugin o? anything you can advocate?

    I g?t so muc? lately it’?
    driving mme indane ?o any assistance is very much appreciated.

  26. daftar judi bola

    I have been reading out a few of your articles and
    i must say pretty good stuff. I will make sure to bookmark your website.

  27. Young Shemales On Tumblr

    It’s an remarkable paragraph in support of all the online
    viewers; they will obtain benefit from it I am sure.

  28. ???? ?????

    If some one desires expert view concerning bloggig and site-building then
    i advise him/her to visit this blog, Cadry on the good job.

  29. Dezvoltare Software

    Cu siguranta ca cel mai indicat dezvoltator de software este Olarian! iti face treaba la timp si
    face exact ce promite Dezvoltare Software

  30. druckerpatronen gĂĽnstig kaufen

    Toll gemachte Website, das Layout gefaellt mir sehr gut! War sicher ne menge Arbeit.

  31. ??????

    Very soon this web site will be famous amid all blog people, due
    to it’s pleasant content


    I loved as much as you’ll receive carried out right here.

    The sketch is attractive, your authored material stylish.
    nonetheless, you command get got an shakiness over that you wish be delivering
    the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside
    case you shield this hike.


    It’s awesome to go to see this web site and reading the views of all friends regarding this article, while I
    am also eager of getting experience.


    Great web site. A lot of helpful information here. I’m sending it
    to a few pals ans additionally sharing in delicious. And certainly, thanks
    to your sweat!

  35. Indoblackjack

    Have you ever considered publishing an e-book or
    guest authoring on other websites? I have a blog centered on the
    same information you discuss and would really like to have you share some stories/information. I know my visitors would appreciate
    your work. If you are even remotely interested,
    feel free to shoot me an e-mail.

  36. Poker Online

    Hello, yeah this paragraph is really nice and I have learned lot of things from it on the topic of blogging.


  37. qqaonwin

    Asking questions are in fact pleasant thing if you are not understanding anything fully, however this piece of
    writing presents good understanding yet.

  38. Https://Profiles.Wordpress.Org

    Good blog you’ve got here.. It’s difficult to find excellent writing like yours nowadays.
    I truly appreciate people like you! Take care!!

  39. daftar id Pro

    If you are going for finest contents like myself, only pay a visit this web site daily since
    it offers quality contents, thanks


    What a data of un-ambiguity and preserveness of valuable know-how regarding unexpected feelings.


    Good article. I’m dealing with many of these issues as well..

  42. rumah dikontrakkan

    I’m real?y loving the th?me/design ?f your site.

    D? you ever run into any b?owser compatibility issues?

    A handfu? of my blog visitors have complained about my web??te not operat?ng correctly in Explorer but looks
    great in Chrome. Do you have any advice t? help f?x t?is issue?

Laissez un commentaire :