Skip to content

Commit d7b8625

Browse files
authored
Prepended 'root' before npm install global command
NPM global commands need sudo
1 parent 69adca3 commit d7b8625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/en/getting-started/3-installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Download and install the latest _LTS_ version of Node.js from [https://nodejs.or
2222
To install the NativeScript CLI, open your terminal and run:
2323

2424
```shell
25-
$ npm install -g nativescript
25+
$ sudo npm install -g nativescript
2626
```
2727

2828
Verify the installation was successful by running `tns` in your terminal. You should see a list of the available commands.
@@ -43,4 +43,4 @@ Check the system requirements and follow the setup instructions for Xcode and th
4343

4444
Check the system requirements and follow the setup instructions for the Android SDK on Linux:
4545

46-
[Advanced setup: Linux](https://docs.nativescript.org/start/ns-setup-linux)
46+
[Advanced setup: Linux](https://docs.nativescript.org/start/ns-setup-linux)

0 commit comments

Comments
 (0)