You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-19Lines changed: 11 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,34 +313,26 @@ Options:
313
313
314
314
## Contextify
315
315
316
-
[Contextify](https://npmjs.org/package/contextify) is a dependency of jsdom, used for running `<script>` tags within the
317
-
page. In other words, it allows jsdom, which is run in Node.js, to run strings of JavaScript in an isolated environment
318
-
that pretends to be a browser environment instead of a server. You can see how this is an important feature.
316
+
[Contextify](https://npmjs.org/package/contextify) is a dependency of jsdom, used for running `<script>` tags within the page. In other words, it allows jsdom, which is run in Node.js, to run strings of JavaScript in an isolated environment that pretends to be a browser environment instead of a server. You can see how this is an important feature.
319
317
320
-
Unfortunately, doing this kind of magic requires C++. And in Node.js, using C++ from JavaScript means using "native
321
-
modules." Native modules are compiled at installation time so that they work precisely for your machine; that is, you
322
-
don't download a contextify binary from npm, but instead build one locally after downloading the source from npm.
318
+
Unfortunately, doing this kind of magic requires C++. And in Node.js, using C++ from JavaScript means using "native modules." Native modules are compiled at installation time so that they work precisely for your machine; that is, you don't download a contextify binary from npm, but instead build one locally after downloading the source from npm.
323
319
324
-
Getting C++ compiled within npm's installation system can be tricky, especially for Windows users. Thus, one of the
325
-
most common problems with jsdom is trying to use it without the proper compilation tools installed. Here's what you
326
-
need to compile Contextify, and thus to install jsdom:
320
+
Getting C++ compiled within npm's installation system can be tricky, especially for Windows users. Thus, one of the most common problems with jsdom is trying to use it without the proper compilation tools installed. Here's what you need to compile Contextify, and thus to install jsdom:
327
321
328
322
### Windows
329
323
330
-
* The latest version of [Node.js for Windows](http://nodejs.org/download/)
331
-
* A copy of [Visual Studio Express 2013 for Windows Desktop](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop)
332
-
* A copy of [Python 2.7](http://www.python.org/download/), installed in the default location of `C:\Python27`
324
+
- The latest version of [Node.js for Windows](http://nodejs.org/download/)
325
+
- A copy of [Visual Studio Express 2013 for Windows Desktop](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop)
326
+
- A copy of [Python 2.7](http://www.python.org/download/), installed in the default location of `C:\Python27`
333
327
334
-
There are some slight modifications to this that can work; for example other Visual Studio versions often work too. But
335
-
it's tricky, so start with the basics!
328
+
There are some slight modifications to this that can work; for example other Visual Studio versions often work too. But it's tricky, so start with the basics!
336
329
337
330
### Mac
338
331
339
-
* XCode needs to be installed
340
-
* "Command line tools for XCode" need to be installed
341
-
* Launch XCode once to accept the license, etc. and ensure it's properly installed
332
+
- XCode needs to be installed
333
+
- "Command line tools for XCode" need to be installed
334
+
- Launch XCode once to accept the license, etc. and ensure it's properly installed
342
335
343
336
### Linux
344
337
345
-
You'll need various build tools installed, like `make`, Python 2.7, and a compiler toolchain. How to install these will
346
-
be specific to your distro, if you don't already have them.
338
+
You'll need various build tools installed, like `make`, Python 2.7, and a compiler toolchain. How to install these will be specific to your distro, if you don't already have them.
0 commit comments