From cb74fd113433bd67d7d352e76e2a0310d92957b6 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 29 Oct 2016 20:40:57 +0800 Subject: Install NPM packages to ~/.npm-packages Credit: * https://github.com/glenpike/npm-g_nosudo * https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md --- _npmrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '_npmrc') diff --git a/_npmrc b/_npmrc index f9e0a43..f65e5f4 100644 --- a/_npmrc +++ b/_npmrc @@ -1,7 +1,7 @@ ;; -;; npm config +;; NPM user config ;; -;; install packages under user home directory -prefix = ${HOME}/npm - +;; Install packages under user home directory (without sudo) +;; Credit: https://github.com/glenpike/npm-g_nosudo +prefix = ${HOME}/.npm-packages -- cgit v1.2.2