Skip to content

Commit b555b78

Browse files
committed
Remove --unsafe-perm from docs as no longer needed
1 parent 87f6b9d commit b555b78

9 files changed

Lines changed: 11 additions & 18 deletions

File tree

docs/getting-started/android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Install it, and run it. Then at the prompt type
2323
apt update
2424
apt upgrade
2525
apt install coreutils nano nodejs
26-
npm i -g --unsafe-perm node-red
26+
npm i -g node-red
2727
node-red
2828

2929
Then you can point a browser to `http://localhost:1880`

docs/getting-started/aws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Once logged in you need to install node.js and Node-RED
137137

138138
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
139139
sudo apt-get install -y nodejs build-essential
140-
sudo npm install -g --unsafe-perm node-red
140+
sudo npm install -g node-red
141141

142142

143143
At this point you can test your instance by running `node-red`. *Note*: you may
@@ -149,7 +149,7 @@ Once started, you can access the editor at `http://<your-instance-ip>:1880/`.
149149
To get Node-RED to start automatically whenever your instance is restarted, you
150150
can use pm2:
151151

152-
sudo npm install -g --unsafe-perm pm2
152+
sudo npm install -g pm2
153153
pm2 start `which node-red` -- -v
154154
pm2 save
155155
pm2 startup

docs/getting-started/azure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Once logged in you need to install node.js and Node-RED
4949

5050
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
5151
sudo apt-get install -y nodejs build-essential
52-
sudo npm install -g --unsafe-perm node-red
52+
sudo npm install -g node-red
5353

5454

5555
At this point you can test your instance by running `node-red`. *Note*: you may
@@ -61,7 +61,7 @@ Once started, you can access the editor at `http://<your-instance-ip>:1880/`.
6161
To get Node-RED to start automatically whenever your instance is restarted, you
6262
can use pm2:
6363

64-
sudo npm install -g --unsafe-perm pm2
64+
sudo npm install -g pm2
6565
pm2 start `which node-red` -- -v
6666
pm2 save
6767
pm2 startup

docs/getting-started/beaglebone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ The easiest way to install them is direct from npm.
8585

8686
To install manually run the following command:
8787

88-
sudo npm install -g --unsafe-perm beaglebone-io johnny-five node-red-contrib-gpio
88+
sudo npm install -g beaglebone-io johnny-five node-red-contrib-gpio

docs/getting-started/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ FROM nodered/node-red
238238
# of your added nodes modules for Node-RED
239239
WORKDIR /data
240240
COPY package.json /data
241-
RUN npm install --unsafe-perm --no-update-notifier --no-fund --only=production
241+
RUN npm install --no-update-notifier --no-fund --only=production
242242
WORKDIR /usr/src/node-red
243243
244244
# Copy _your_ Node-RED project files into place

docs/getting-started/local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To install Node-RED locally you will need a [supported version of Node.js](/docs
4444
To install Node-RED you can use the `npm` command that comes with node.js:
4545

4646
```
47-
sudo npm install -g --unsafe-perm node-red
47+
sudo npm install -g node-red
4848
```
4949

5050
If you are using Windows, do not start the command with <code>sudo</code>.
@@ -203,7 +203,7 @@ If you have installed Node-RED as a global npm package, you can upgrade to the
203203
latest version with the following command:
204204

205205
```
206-
sudo npm install -g --unsafe-perm node-red
206+
sudo npm install -g node-red
207207
```
208208

209209
If you are using Windows, do not start the command with <code>sudo</code>.

docs/getting-started/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You should receive back output that looks similar to:
3838

3939
Installing Node-RED as a global module adds the command `node-red` to your system path. Execute the following at the command prompt:
4040

41-
npm install -g --unsafe-perm node-red
41+
npm install -g node-red
4242

4343
#### 3. Run Node-RED
4444

docs/user-guide/node-red-admin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you install it separately, you would use the command `node-red-admin`.
2323
If you want to install `node-red-admin` separately, you can install it as a global
2424
module with:
2525

26-
npm install -g --unsafe-perm node-red-admin
26+
npm install -g node-red-admin
2727

2828
<div class="doc-callout">
2929
<em>Note</em> : <code>sudo</code> is required if running as a non-root user on Linux/OS X. If

docs/user-guide/runtime/adding-nodes.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,3 @@ npm install <name-of-module>@latest
6060
```
6161

6262
Whichever approach you take, you will need to restart Node-RED to load the updates.
63-
64-
<div class="doc-callout"><em>Note</em> : the reason for using the
65-
<code>--unsafe-perm</code> option is that when node-gyp tries to recompile any
66-
native libraries it tries to do so as a "nobody" user and then fails to get
67-
access to certain directories. This causes the nodes in question (for example,
68-
serialport) not to be installed. Allowing it root access during install
69-
allows the nodes to be installed correctly during the upgrade.</div>

0 commit comments

Comments
 (0)