Skip to content

Commit 0f4497b

Browse files
authored
Update Node.js instructions for version managers (#6089)
1 parent 774f50b commit 0f4497b

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

docs/app/get-started/install-cypress.mdx

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ for the download of the Cypress binary. You can also use the npm properties
4040
they will only be used if the system properties are being resolved to not use a
4141
proxy.
4242

43-
:::info
44-
45-
<strong>snap</strong>
46-
47-
The [Node.js Snap for Linux](https://github.com/nodejs/snap) package manager has constrained operating system access. Install using:
48-
49-
```shell
50-
npm install cypress --save-dev --foreground-scripts
51-
```
52-
53-
:::
54-
5543
### <Icon name="download" /> Direct download
5644

5745
The recommended approach is to install Cypress with `npm` because:
@@ -131,18 +119,23 @@ Cypress generally aligns with
131119

132120
Follow the instructions on [Download Node.js](https://nodejs.org/en/download/) to download and install [Node.js](https://nodejs.org/).
133121

134-
If you are using a [Cypress Docker image](../continuous-integration/overview#Cypress-Docker-variants), you will find a fixed version of Node.js is pre-installed in the image.
135-
You select the Node.js version using the Docker image tag.
136-
137122
:::tip
138123

139124
<strong>Best Practice</strong>
140125

141-
Use a [Node.js package manager](https://nodejs.org/en/download/package-manager/all) to install Node.js.
142-
Package managers for Node.js allow you to switch between different versions easily.
126+
Use a Node.js version manager as suggested on [Download Node.js](https://nodejs.org/en/download/) to install Node.js,
127+
or use an alternate Node.js version manager of your choice.
128+
This allows you to switch between different versions of Node.js easily.
129+
130+
Note that the [Node.js Snap for Linux](https://github.com/nodejs/snap) version manager is not recommended for use with Cypress.
131+
Attempting to use it as a non-root user may result in permissions errors.
143132

144133
:::
145134

135+
If you are using a [Cypress Docker image](../continuous-integration/overview#Cypress-Docker-variants),
136+
you will find a fixed version of Node.js is pre-installed in the image.
137+
You select the Node.js version using the Docker image tag.
138+
146139
### Hardware
147140

148141
When running Cypress locally, it should run comfortably on any machine that is

0 commit comments

Comments
 (0)