Как установить nodejs на windows 7

Статья Установка Node.js на Windows 7 из категории Node.js | Юлия Волобой %


26.01.2021
6 комментариев

43 923

Привет! Рассмотрим установку Node.js на Windows 7 и протестируем его работу.

При попытке установить последнюю версию Node.js на Windows 7, в моем случае v14.15.4 LTS (ссылка), возникает ошибка о том, что приложение поддерживается на Windows 8.1. и выше:

1. Находим более раннюю версию, которая подойдёт для Windows 7, перейдем по ссылке (на сайт nodejs.org).

2. Скачиваем версию для вашей операционной системы (у меня ссылка на v13.14.0-x64.msi). Открываем этот файл для установки:

3. В открывшемся окошке подтверждаем свою готовность к установке нажатием кнопки Next:

4. Соглашаемся с условиями лицензионного соглашения, ставим галочку и нажимаем Next:

5. По умолчанию, установка Node.js происходит в папку C: Program Filesnodejs на Вашем компьютере. Поменяйте, при необходимости, и нажимайте Next:

6. Далее идут пользовательские настройки. Предлагается установить дополнительные инструменты — на Ваше усмотрение. Оставляем как есть и нажимаем Next:

7. Видим сообщение об успешной установке, нажимаем Finish:

Мои поздравления 🙂 Node.js установлен.

1. Через Пуск открываем стандартную программу Windows Выполнить , если не нашли Командную строку:

1.1. Командой cmd открываем консоль:

2. Теперь пишем в консоли node -v — так проверяем работу Node.js. Видим на экране установленную версию, в моём случае v13.14.0:

3. Дальше командой npm -v проверяем наличие npm. Видим версию, в моем случае 6.14.4

Всё отлично, мы решили проблему: установили Node.js на Windows 7 и проверили его работу.

Голосов: 94, Средняя оценка: 4.7

This post walks through a Node.js install on Windows 7 and tests that node and npm work. It installs v13.14.0 LTS.

It seems that v13.14.0 LTS is the last installer that works on Window 7. I get this error when I try to install v14.0.0 (node-v14.0.0-x64.msi from [link]):

This post also includes a link to the License Agreement so people can review it before installing. The install takes about 30 secs and uses 86 MB.

Steps

1. Go to [link]

2. Click node-v13.14.0-x64.msi or click [link]

3. Click to launch the install

4. Click Run

5. Click Next

6. Click the I accept the terms in the License Agreement checkbox and click Next

Note: A PDF of the 25 page License Agreement is [here] a Word doc is [here]

7. Click Next

Note: Installs Node.js into C:Program Filesnodejs

8. Click Next on the Custom Setup

Note: I’ve expanded the submodules in the picture

Note 2: Clicking on Disk Usage shows that all the features require 86 MB

9. Click Install

10. You’ll see the screen pause, darken and see this pop up. Click Yes.

11. Click Finish

Congratulations! You’ve installed node and npm.

Test

1. (A) Click the Windows Icon, (B) type cmd and (C) click cmd.exe

2. Type node -v. I see v10.14.2.

3. Type npm -v. I see 6.4.1.

…and it works!

Reference

Node.js logo from [link]

Здесь я расскажу как установить Node JS на любую версию Windows, начиная с Windows 7, также если вы хотите в будущем начать пользоваться Linux, и Ubuntu в частности, то можете прочитать статью, о то как установить Node JS на Ubuntu (Ссылка на статью).

Скачиваем Node JS на Windows:

Для этого надо зайти на официальный сайт и скачать обычный файл установщик (Ссылка на сайт),  после этого выбираем LTS версию, так как она самая последняя и стабильная.

Скачиваем установщик Node JS для Windows

У меня написана версия 10.16.3, но у вас скорее всего будет другая.

Установка Node JS на Windows:

Скачанный файл открываем, для этого два раза на него кликаем, потом нажимаем NEXT.

Открываем установщик Node JS на Windows

Со всем соглашаемся и опять нажимаем NEXT.

Пользовательское соглашение Node JS на Windows

Выбираем куда установить, для этого нажимаем Chenge…, я же оставлю путь по умолчанию, нажимаем NEXT.

Выбираем куда установить

Оставляем всё как есть, не чего менять не нужно, нажимаем NEXT.

Что ещё установить для работы

После всего пройденного, откроется окно в котором надо нажать INSTALL, и ждём когда установится.

После того как всё установилось, нажимаем FINISH.

Проверяем как установилось:

Это совсем просто, открываем командную стоку, что бы открыть её, в поиске Windows пишем cmd, и туда вписываем команду node -v.

Проверка Node JS

Как видите, у меня всё нормально установилось, у вас тоже должно быть всё в порядке.

Вывод:

В будущем я напишу больше статьей, о том как работать с Node JS, как создавать на нём программы и т.д., также надо сказать что эта инструкция подойдёт  для любо версии Windows, начиная с Windows 7.

Подписываетесь на наш Telegram канал и группу Вконтакте.

Подписываетесь на соц-сети:

Оценка:

Загрузка…

Также рекомендую:

As with any programming language, platform, or tool that doesn’t come bundled with Windows, getting up and running with Node.js takes some initial setup before you can start hacking away. In my experience, though Node.js has a far better installation experience on Windows than virtually any other language, platform, or tool that I’ve tried to use — just run the installer, and you’re good to go.

In this quick tutorial, we’ll take a look at how to get Node.js installed on Windows. Once we’ve completed the entirety of the tutorial, you’ll be ready to take the next step with Node.js.

This guide covers installing Node.js on the following versions of Windows: Windows 7, Windows 8, Windows 8.1, and Windows 10. These are the versions that are consistently tested and supported by the Node.js build process at the time of writing.

Step 0: The Quick Guide (TL;DR) to Get Node.js Installed on Windows

Here’s the abbreviated guide, highlighting the major steps:

  1. Open the official page for Node.js downloads and download Node.js for Windows by clicking the «Windows Installer» option
  2. Run the downloaded Node.js .msi Installer — including accepting the license, selecting the destination, and authenticating for the install.
    • This requires Administrator privileges, and you may need to authenticate
  3. To ensure Node.js has been installed, run node -v in your terminal — you should get something like v6.9.5
  4. Update your version of npm with npm install npm --global
    • This requires Administrator privileges, and you may need to authenticate
  5. Congratulations — you’ve now got Node.js installed, and are ready to start building!

Step 1: Download the Node.js .msi Installer

As the first step to installing Node.js on Windows, you’ll need to download the installer. You’ll be able to grab the installer from the official downloads page for Node.js.

You’ll be able to download the Windows Node.js installer by clicking the Windows Installer option at the top of the page — when you click this, you’ll get an MSI installer download. Make sure to save it somewhere that you’ll be able to find it!

Step 2: Run the Node.js Installer

You’ve got the Windows Installer — great! Now, you need to install it on your PC. The installer is a pretty typical Wizard interface for installing software on Windows — there are a few steps to it, but you can have it done in under a minute. You can get through it by following the guide below:

  • Welcome to the Node.js Setup Wizard
    • Select Next
  • End-User License Agreement (EULA)
    • Check I accept the terms in the License Agreement
    • Select Next
  • Destination Folder
    • Select Next
  • Custom Setup
    • Select Next
  • Ready to install Node.js
    • Select Install
    • Note: This step requires Administrator privlidges.
    • If prompted, authenticate as an Administrator
  • Installing Node.js
    • Let the installer run to completion
  • Completed the Node.js Setup Wizard
    • Click Finish

Step 3: Verify that Node.js was Properly installed

To double check that Node.js was installed fully on your PC, you can test the following command in your Command Prompt (regardless of if you’re using cmd.exe, Powershell, or any other command prompt):

$ node -v

If Node.js was installed fully, the command prompt will print something similar to (but probably not exactly) this:

$ node -v // The command we ran - prints out the version of Node.js that's currently installed 
v6.9.5 // The printed version of Node.js that's currently installed - v6.9.5 was the most current LTS release at the time of writing.

Step 4: Update the Local npm Version

As the final step in getting Node.js installed, we’ll update your version of npm — the package manager that comes bundled with Node.js.

Node.js always ships with a specific version of npm — Node.js doesn’t (and shouldn’t!) automatically update npm. The release cycle of the npm CLI client isn’t in sync with the Node.js releases. Because of this, there’s almost certainly going to be a newer version of npm available than the one that is installed as a default in any given Node release.

To quickly and easily update npm, you can run the following command:

npm install npm --global // Update the `npm` CLI client

Now you’ve got Node.js on Windows machine. It’s time to start exploring!

Luckily, we’ve got your back. We’ve written a bunch of articles to help you get started with Node.js! If you’re interested in exploring ES6, you should check out our article on some of the most exciting ES6 features in Node.js. If you’re interested in ways to collaborate with your team a bit better, you should check out our tutorial on using ESLint in projects to improve team collaboration through code standards. Maybe you’d just like to start deploying the applications you’re about to build? In that case, take a peek at our guide on how to deploy Node.js apps on Linux with systemd!

That said, if you want to keep in touch with Node.js and the surrounding ecosystem, you should go follow @NodeSource on Twitter! We’ll keep you updated with important news from the Node.js project, and share the best Node.js tutorials, guides, and tools that the community has to offer.

Понравилась статья? Поделить с друзьями:
  • Как установить openssh на windows 7
  • Как установить node js определенной версии windows
  • Как установить php на windows iis
  • Как установить openserver на windows 10
  • Как установить node js на windows через командную строку