From c525bf56bdf6c3cfb09992827ee2fbf6bc631ac9 Mon Sep 17 00:00:00 2001 From: Florian Polster Date: Tue, 26 Mar 2019 09:18:57 +0100 Subject: [PATCH 1/2] Mention admin privileges as a install requirement --- docs/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index fb160be2f0..8e80e67040 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -9,7 +9,7 @@ If you have the previous `vue-cli` (1.x or 2.x) package installed globally, you Vue CLI requires [Node.js](https://nodejs.org/) version 8.9 or above (8.11.0+ recommended). You can manage multiple versions of Node on the same machine with [nvm](https://github.com/creationix/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows). ::: -To install the new package, use one of those commands: +To install the new package, use one of those commands (you need administrator privileges to install globally): ``` bash npm install -g @vue/cli From e8d6b491aab56e42b2db67b334e0872d964024eb Mon Sep 17 00:00:00 2001 From: Florian Polster Date: Sat, 30 Mar 2019 13:40:18 +0100 Subject: [PATCH 2/2] Elaborate on the need of sudo for install --- docs/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 8e80e67040..306099471a 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -9,7 +9,7 @@ If you have the previous `vue-cli` (1.x or 2.x) package installed globally, you Vue CLI requires [Node.js](https://nodejs.org/) version 8.9 or above (8.11.0+ recommended). You can manage multiple versions of Node on the same machine with [nvm](https://github.com/creationix/nvm) or [nvm-windows](https://github.com/coreybutler/nvm-windows). ::: -To install the new package, use one of those commands (you need administrator privileges to install globally): +To install the new package, use one of the following commands. You need administrator privileges to execute these unless npm was installed on your system through a Node.js version manager (e.g. n or nvm). ``` bash npm install -g @vue/cli