Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3099911F61 for ; Mon, 12 May 2014 18:56:30 +0000 (UTC) Received: (qmail 4583 invoked by uid 500); 12 May 2014 18:49:50 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 4547 invoked by uid 500); 12 May 2014 18:49:50 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 4539 invoked by uid 99); 12 May 2014 18:49:50 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 18:49:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 May 2014 18:49:47 +0000 Received: by mail-ie0-f174.google.com with SMTP id at1so4036127iec.33 for ; Mon, 12 May 2014 11:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=9lKrLgPA3X9PqMfNDhkZ6G69U+wGWt1pah9HWAqBp80=; b=U0koXmDZkgwHwJJxRGHuEnQTlEwZU32BQ5IO89xP/PUublZKY25KhICFIpX/ao1TSi sjlMO+PPqkbTjw1qHteLhIsj6UciNv7cc3kEWDj9m8vmvyOlZDfs1ZqJFpDUAKxsS/7Z LAK0IyFtRdLPB/r7icI/RkWonggX6Iv0u+3FZ2OqepdfcZP2Q2t9IMyDdu0oqnZhY+u0 LVem4WgL0hS248MAbWcMstUbwwN2TTk1yhK1ktD8LOgSMLp1YVskkc+2/VEBCJff/8EI sciDO3FMG9z4+C98eZNPziPjNFF9G821uHCcZUZv8PUiL5sslb+z8hAuN504MW6O6FGJ aXQg== MIME-Version: 1.0 X-Received: by 10.50.153.49 with SMTP id vd17mr47212405igb.40.1399920564196; Mon, 12 May 2014 11:49:24 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.50.173.40 with HTTP; Mon, 12 May 2014 11:49:24 -0700 (PDT) In-Reply-To: <5900F9BCB827854FB01CA94BA718810D36A021FB@USPHLEMB11A.global.corp.sap> References: <5900F9BCB827854FB01CA94BA718810D36A021FB@USPHLEMB11A.global.corp.sap> Date: Mon, 12 May 2014 11:49:24 -0700 X-Google-Sender-Auth: 2NW_-Qh9g_kBVzIa1mg3mLk3IO8 Message-ID: Subject: Re: sans sudo on npm install From: Brian LeRoux To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=089e014954bef15e4004f93867e8 X-Virus-Checked: Checked by ClamAV on apache.org --089e014954bef15e4004f93867e8 Content-Type: text/plain; charset=UTF-8 You cannot install a module globally with a default install of Node. This isn't really a Cordova issue but one of taste. Some people like to isolate their systems and not install modules globally. Indeed, this is probably a good practice. We could point the way in the docs but we do not want to change our install instructions to something that will fail by default. On Mon, May 12, 2014 at 10:34 AM, Wargo, John wrote: > I chatted with Fil about this in the pre-3 days and it was a requirement > at the time. Have things changed to the point where it works without it? > Every time I've tried to do it without sudo on Macintosh it fails. > > > -----Original Message----- > From: Marcel Kinard [mailto:cmarcelk@gmail.com] > Sent: Friday, May 09, 2014 10:01 AM > To: dev@cordova.apache.org > Subject: sans sudo on npm install > > I'm not a Node.js expert, but the Linux person inside me says that using > sudo to install and run things ought to be avoided if possible. > > Would there be objection if I changed cordova-docs to omit sudo from the > npm install commands? And added references to some of these items below? > > http://howtonode.org/introduction-to-npm > > http://justjs.com/posts/npm-link-developing-your-own-npm-modules-without-tears > > https://issues.apache.org/jira/browse/CB-5320 > --089e014954bef15e4004f93867e8--