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

./npm

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.

47 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.
    Rep.

  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 support.apple.com/iphone/restore

    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
    time.

  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?.

  12. detik.sport

    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.?? ???????? ???? ?????? ? ???????????, ?? ????????!

  14. https://sbobeta88.com

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

  15. sbobeta88.info

    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
    website

  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?

    My
    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

  32. www.idpkr88.info

    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.

  33. https://en.gravatar.com/

    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.

  34. mahabet.co

    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.

    thanks.

  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

  40. capsasusunhoki.wordpress.com

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

  41. infositusjudiqq.wordpress.com

    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?

  43. https://dewalego.casa

    Very good info. Lucky me I ran a?ross your blog b? accident (stumbleupon).
    ?’ve book-marked ?t for later!

  44. isneurogastronomy.com

    Thank you for some other fantastic post. Where else
    may anybody get that kind of info in such a perfect means of writing?
    I’ve a presentation subsequent week, and I’m at the search for such information.

  45. rajawali poker

    Hello everyone, it’s my first go to see at this website, and piece of writing is actually fruitful in support
    of me, keep up posting these content.

  46. mabosbet

    For those of you who like to play gambling of course, if you are usually looking for partners within gambling activities,
    Mabosbet is the right choice. Mabosbetransfer You can contact our customer care and make dealings with us.
    Mabosbet livechat is available 24 several hours nonstop and is ready to serve you that help
    you online with betting.

    Mabosbet. com as the responsible gambling agent, we always provide an alternate link to mabosbet in order that members
    feel comfortable. You no longer need to have trouble finding an alternate Jababbet link with
    regard to access, it is already available for you.

    We all also always give concern to the safety of our
    members, very rigid protecting each of the privacy associated with members of Jababbet.

    Reliable Mabosbet From 2010

    With good praise, the service from the Headquarters is usually
    no doubt. Friendly, quickly response, under 3
    minutes.

    Mabosbet is highly appreciated by gambling bettors coming from
    Indonesia because whatever triumph you get is going to be recognized by
    mabosvip. We usually want to provide typically the best
    for members with highest service. The site mabosmail.
    com is also very straightforward to access, since you only require internet access
    and option links mabosvip, no want to use proxies, notifications, or troublesome applications.

    That is why many men and women join mabosbola and help to
    make deposits, then, win the match. The best in addition to quality alternative mabosbola alternate site.

    Come join mabosbet. com the trusted online gambling agent in Philippines.
    Contact livechat mabosbet now in the lower proper corner to get a
    new user ID. Welcome to the club.

    MABOSBET is a Trusted Online Wagering Site that has been established for more compared to 9 years with the particular biggest
    quantity of online wagering players. This gambling internet site
    also provides the most satisfactory online gambling game
    along with the most popular betting providers in Indonesia.
    On-line Gambling Games that can be played at MABOSBET are
    Sportsbook Soccer Betting, Live Casino, On-line
    poker Cards Gambling, Online Slot Gambling and Online Togel.
    Mabosbet itself has provided many different excellent facilities
    for internet gambling players in Indonesia which range from
    24-hour Live Chat Help, Bonuses with the simplest conditions, additional wins regarding True Gambling Players.

    This particular MABOSBET Gambling Site also proves to get very trusted, while
    this Gambling Web site can also pay for any winning player without the deductions.
    So you may play gambling comfortably plus safely without
    anxiety about paying. In addition to a definite win at MABOSBET, you will also offer additional bonuses to supply a different experience actively
    playing online gambling.

    JOBI BASKETBALL OFFICIAL SBOBET ONLINE IN INDONESIA
    Online Soccer Gambling has become a very popular gambling online game within Indonesia where every game has
    a market for betting. MABOSBET has become a
    great official partner of BOLA TANGKAS Indonesia, where more as compared to a decade has provided football gambling games for betting players in Indonesia.
    This SBOBET Soccer Gambling Marketplace allows a fair where players will actually be given the live market from the official match directly.
    Therefore you will be very lucky to be able to play SBOBET in this
    particular MABOSBET.

    RELIABLE ONLINE SLOT MACHINE GAME SITE SITE NUMEROUS PROFITS
    Online slot gambling is currently popular in Dalam negri, where
    online slots are really successful with huge jackpots and freespins that
    are usually an easy task to win. Because regarding that this MABOSBET very first provided Online
    Slot Games from 2012 for wagering players in Indonesia.
    Exactly where Jackpot is provided a lot more than USD $ 1,
    000, 000 for slot machine game players who register in MABOSBET.

    The Slot Game machine at MABOSBET won’t just use your Equilibrium, the Slot Game offers been built with the FREESPIN Bonus that comes away more often, so a person will be Fortunately.

  47. sbobet-bola.net

    Nice post. I was checking constantly this weblog and I’m inspired!

    Extremely useful information particularly the remaining phase 🙂 I
    care for such information a lot. I used to be seeking this particular info for a very lengthy time.
    Thank you and good luck.

Laissez un commentaire :