Node js не ставится на windows 7

Is it normal that Windows7 (x64) is not supported by the latest Node version? When and what version is Windows7 not being supported?

@tmccurdy

Is it normal that Windows7 (x64) is not supported by the latest Node version? When and what version is Windows7 not being supported?

@MylesBorins

@targos

Support for Windows 7 was removed in #31954 (for Node.js v14.0.0)

@targos
targos

added
the

windows

Issues and PRs related to the Windows platform.

label

Sep 30, 2020

@richardlau

Support for Windows 7 was removed in #31954 (for Node.js v14.0.0)

Partially reverted in #33176 (in Node.js 14.5.0). The msi installer is still blocked on Windows 7 but the 7z/zip and/or exe downloads are not if an environment variable is set.

@asdf2345

Support for Windows 7 was removed in #31954 (for Node.js v14.0.0)

Partially reverted in #33176 (in Node.js 14.5.0). The msi installer is still blocked on Windows 7 but the 7z/zip and/or exe downloads are not if an environment variable is set.

Yet the environment variable does literally nothing after it’s set

@Domarius

Yet the environment variable does literally nothing after it’s set

Close and re-open the command window.

@Astara

Does the installer check if the Win7 platform is still supported through Microsoft’s extended support that is sold through the end of 2023?
Since cygwin is a POSIX/Linuxish compatible platform, does node.js support run on Cygwin?

@Psychosynthesis

Add Windows support to the 14 branch of the node!

Because of this limitation, half of the projects cannot be supported if the developer’s computer has a seven.

As far as I can tell, this is essentially just a whim of the developers — «let’s stop supporting this junk», despite the fact that people continue to use it, and there are no killerfits here, which could be expected in the 14th version due to the termination of support.


I duplicate my post also in this thread: #38761

Sorry if this looks intrusive, but because of this, I am now facing a situation in which I, apparently, have to install a virtual machine to run a new Windows under it, simply because I cannot (and do not want to) update the OS for a thousand reasons, but for work I need Win and NodeJS not lower than 14th, аnd this is real ridiculous situation. Therefore, I want the developers to pay attention to the problem. Thanks.

@Trott
Trott

added
the

v14.x

Issues that can be reproduced on v14.x or PRs targeting the v14.x-staging branch.

label

Mar 15, 2022

@K4sum1

Afaik the latest node is able to work on 7 by changing a single function and setting the variable.

@tniessen

Does the installer check if the Win7 platform is still supported through Microsoft’s extended support that is sold through the end of 2023?

@Astara I don’t think so. It’s all open-source, so feel free to propose changes through PRs or recompile with your own logic. There are alternative installation methods that do not require using the MSI as well.

Add Windows support to the 14 branch of the node!

@Psychosynthesis the latest 14.x releases include this logic:

#define SKIP_CHECK_VAR «NODE_SKIP_PLATFORM_CHECK«
#define SKIP_CHECK_SIZE 1
#define SKIP_CHECK_VALUE «1«
int wmain(int argc, wchar_t* wargv[]) {
// Windows Server 2012 (not R2) is supported until 10/10/2023, so we allow it
// to run in the experimental support tier.
char buf[SKIP_CHECK_SIZE + 1];
if (!IsWindows8Point1OrGreater() &&
!(IsWindowsServer() && IsWindows8OrGreater()) &&
(GetEnvironmentVariableA(SKIP_CHECK_VAR, buf, sizeof(buf)) !=
SKIP_CHECK_SIZE ||
strncmp(buf, SKIP_CHECK_VALUE, SKIP_CHECK_SIZE + 1) != 0)) {
fprintf(stderr, «Node.js is only supported on Windows 8.1, Windows «
«Server 2012 R2, or higher.n«
«Setting the « SKIP_CHECK_VAR « environment variable «
«to 1 skips thisncheck, but Node.js might not execute «
«correctly. Any issues encountered onnunsupported «
«platforms will not be fixed.«);
exit(ERROR_EXE_MACHINE_TYPE_MISMATCH);
}

Is this not working for you, even after setting the NODE_SKIP_PLATFORM_CHECK environment variable as documented for Node.js 14? As discussed here and elsewhere, the MSI might not be working, but other installation mechanisms should.

@K4sum1

Why even add more code that wastes cycles and makes the program bigger? If it breaks, it breaks. If it works, it works.

@Psychosynthesis

@tniessen v.14.19.0 was not working even if i set the NODE_SKIP_PLATFORM_CHECK. However, I succeeded to install version v.14.17.6 and it work for me (at least for now).

Previously, I installed the latest available 13.x version, and then simply replaced its files with files from the fourteenth zip archive.
I don’t know if it’s possible to skip the step with the 13th version — I just checked if my project would work on it.

This, of course, is better than nothing, but it will be sad if the developers of any of the packages once again decide to update their dependencies without much sense (as in this case, they obviously did in typescript-eslint v.5.3).

@MyTDT-Mysoft

soo much trouble caused by rushing drop support of something that is totally capable to run node… for no gains other than say that some newer function call that is just a convenient way (or may more linux like) way of doing what was already possible, instead of wrap such functionality on a function that does not need to be changed ever again, that would implement the same functionality even if in a slight less performant way… its lol :)

@tniessen

Why even add more code that wastes cycles and makes the program bigger? If it breaks, it breaks. If it works, it works.

@K4sum1 Why do guard rails exist that waste metal and cost money? Because they deter from entering dangerous areas. Node.js makes no security guarantees on Windows 7. You can still climb over guard rails and you can still use Node.js on Windows 7 by simply setting NODE_SKIP_PLATFORM_CHECK as documented. But it also means you are on your own.

v.14.19.0 was not working even if i set the NODE_SKIP_PLATFORM_CHECK

@Psychosynthesis If you can reproduce that behavior, please feel free to report it as a bug and/or send a PR to fix it.

soo much trouble caused by rushing drop support of something that is totally capable to run node… for no gains other than say that some newer function call that is just a convenient way (or may more linux like) way of doing what was already possible, instead of wrap such functionality on a function that does not need to be changed ever again, that would implement the same functionality even if in a slight less performant way… its lol :)

@MyTDT-Mysoft Feel free to contribute to the project.

@K4sum1

@K4sum1 Why do guard rails exist that waste metal and cost money? Because they deter from entering dangerous areas. Node.js makes no security guarantees on Windows 7. You can still climb over guard rails and you can still use Node.js on Windows 7 by simply setting NODE_SKIP_PLATFORM_CHECK as documented. But it also means you are on your own.

So your analogy compares possible death to running a program on a OS with millions of users? Good going there.

@tniessen

So your analogy compares possible death to running a program on a OS with millions of users?

@K4sum1 That’s clearly a straw man argument, and I’m tired of arguing against logical fallacies…

The dangerous part is not «running a program on a OS», as you misrepresent it. The dangerous part is running a program that makes no security guarantees on an unsupported OS that many users do not receive security patches for. It might be that you don’t see any danger in doing that, but we do. Maybe your applications don’t deal with sensitive data or security-critical processes, but many do.

An analogy is «a comparison of two otherwise unlike things based on resemblance of a particular aspect». In this case, the «two otherwise unlike things» are danger in real life and danger within computer systems, and the «particular aspect» is a mechanism that deters from said danger but that can be bypassed. So you are somewhat correct, it is an analogy, even though you misrepresent its meaning. The analogy does not at all imply that one danger is comparable to the other, but pretending that it does (as you just did) is a useful straw man, assuming one is willing to resort to logical fallacies.

Lastly, «millions of users» does not support your point at all. If millions of people walk along a dangerous area with no guard rail, the risk is certainly higher than if there were only a few people. Similarly, if millions of users run node on an unsupported platform with no security guarantees, the risk is higher than if there were only a few users.

@MyTDT-Mysoft

ok, so that means you will do whats possible to have it working, but you wont care about security, which is totally fine, but dont shove unrequested security out of one throat, also isnt like it will have security problems because its on win7 unless its a bug with win7, which then its not even your job to protect against… but then again maybe we should put the fault on other projects that depend on node… that shouldnt be using it… since node wants to care about web server security, which is not aligned with the offline usage of such projects like emscripten, where all this «security» is irrelevant

@K4sum1

The dangerous part is running a program that makes no security guarantees on an unsupported OS that many users do not receive security patches for. It might be that you don’t see any danger in doing that, but we do. Maybe your applications don’t deal with sensitive data or security-critical processes, but many do.

Anyone with 7 is either going to stick with 12, or use the environment variable, sensitive data or not. I just use a portable version of 12 on my drive for when I need to use Node.js, and it works fine. You can’t stop me from using 12 on 7, unless that code gets removed, and I can use the latest version without modification. Yes I’m too lazy to set an environment variable, and I’m definitely not maining 10 any time soon, fight me.

Also anyone in a security critical situation that has 7 has either ESU updates, or uses 0patch, meaning the weak point in this case would be Node.js 12, not Windows. Also if security is the reason, why did Node.js drop the still officially supported Server 2012 R1?

@hello-smile6

The dangerous part is running a program that makes no security guarantees on an unsupported OS that many users do not receive security patches for. It might be that you don’t see any danger in doing that, but we do. Maybe your applications don’t deal with sensitive data or security-critical processes, but many do.

Anyone with 7 is either going to stick with 12, or use the environment variable, sensitive data or not. I just use a portable version of 12 on my drive for when I need to use Node.js, and it works fine. You can’t stop me from using 12 on 7, unless that code gets removed, and I can use the latest version without modification. Yes I’m too lazy to set an environment variable, and I’m definitely not maining 10 any time soon, fight me.

Also anyone in a security critical situation that has 7 has either ESU updates, or uses 0patch, meaning the weak point in this case would be Node.js 12, not Windows. Also if security is the reason, why did Node.js drop the still officially supported Server 2012 R1?

Just wipe your hard drive and install Debian.

@Psychosynthesis

@tniessen

The dangerous part is running a program that makes no security guarantees on an unsupported OS that many users do not receive security patches for. It might be that you don’t see any danger in doing that, but we do. Maybe your applications don’t deal with sensitive data or security-critical processes, but many do.

OMG what a mess…

Firstly, in your «supported system» there are no less known holes than in the ancient seven. Even if not more considering that the new Windows has now become a target for intruders.

Secondly — if a person really cared about security, he would at least not write his applications in JS, think about it.

@stanleyxu2005

Good to know there is a trick to run Node 14+ on Windows 7 with NODE_SKIP_PLATFORM_CHECK=1.

For me, I choose to develop with Windows 7 but deploy onto Linux. As long as all required node_modules can be installed properly on both Win7 and my Linux distribution, I will still manually upgrade Node carefully.

Out of my curiosity, is there any real security issue encountered when running Node 14+ on Windows 7?

@tniessen

Secondly — if a person really cared about security, he would at least not write his applications in JS, think about it.

@Psychosynthesis I read this sentence at least a dozen times. I followed your advice and thought about it. And yet, I still can’t tell if you are joking, and I still have no idea what to say to this.


@stanleyxu2005 Yes, there is a simple trick to run newer Node.js versions on Windows 7. You can even set the environment variable globally, either system-wide or at least for a user, so you only have to do it once.

Out of my curiosity, is there any real security issue encountered when running Node 14+ on Windows 7?

I am not aware of any that are specific to Windows 7. Then again, we don’t test or audit on Windows 7, and I believe most security researchers have moved on to newer operating systems as well. We also have a bug bounty program but unsupported operating systems might be out of scope, so people might have less incentive to report security issues related to Windows 7.


As much as I appreciate hostile comments from people who complain about non-profit software that they don’t contribute to, I’d like to get this back on track. Is installation of Node.js 14 or newer still an issue on Windows 7 when the environment variable is set properly? If so, please provide more information or open a PR to address the issue.

@K4sum1

Secondly — if a person really cared about security, he would at least not write his applications in JS, think about it.

@Psychosynthesis I read this sentence at least a dozen times. I followed your advice and thought about it. And yet, I still can’t tell if you are joking, and I still have no idea what to say to this.

Javascript isn’t known for its security. I would start complaining, but I know a lot of shit isn’t entirely the fault of Javascript itself, but other shit too.

As much as I appreciate hostile comments from people who complain about non-profit software that they don’t contribute to, I’d like to get this back on track. Is installation of Node.js 14 or newer still an issue on Windows 7 when the environment variable is set properly? If so, please provide more information or open a PR to address the issue.

I think once I tried setting it, but it still didn’t install. I think the installer should just give a prompt saying 7 isn’t fully supported and remove the code that looks for the variable in the installer and the program.

Also if 7 was dropped for security, why was Server 2012 R1, a still supported OS, dropped with it?

@MyTDT-Mysoft

also i think when people say that theres an issue even for a not supported OS, but there isnt really a reason do to that, like not paying attention and using an optional new code path that would require a new OS, even if you dont normally test on it, i think for a big project like that, isnt really fair to dismiss people that showed that theres a problem that shouldnt exist, like i dont see a reason for Node to even require win7 instead of XP for example.

and has it was said using what MS support as a reason to support or not something is really a bad thing, and i’ve seen lately lot of people saying that as a justification, like many not having 32bit support even when it had 32bit support and the windows version they require also have 32bit support, so yeah, i think people should always put requirements to a minimum and optionally building on that even without priority or formal support, but never dismissing something that is simple to adjust, helping the requirements to be kept as minimum as it can be.

@bnoordhuis

I doubt this thread is going to result in productive outcomes so I’m taking the liberty of putting it out to pasture. Please file a new issue if there are legitimate installation problems.

I tried the following methods all of which have failed

  1. Running the .msi installer via the GUI from the Node site (no option given for running as admin)
  2. Running the .msi installer via comandline as admin
  3. Running choclatey installer as admin

Here is the choclatey output as seen in the log

Downloading nodejs.install 64 bit
   from 'https://nodejs.org/dist/v5.10.1/node-v5.10.1-x64.msi'
 Installing nodejs.install...
 [ERROR] Running msiexec with /i "C:Usersuser1AppDataLocalTempchocolateynodejs.install5.10.1nodejs.installInstall.msi" /quiet  was not successful. Exit code was '1603' Error Mess

 age:
 .
 At C:ProgramDatachocolateyhelpersfunctionsStart-ChocolateyProcessAsAdmin.ps1:92 char:10
 +     throw <<<<  $errorMessage
     + CategoryInfo          : OperationStopped: ([ERROR] Running...or Message:
 .:String) [], RuntimeException
     + FullyQualifiedErrorId : [ERROR] Running msiexec with /i "C:UserstcastonzoAppDataLocalTempchocolateynodejs.install5.10.1nodejs.installInstall.msi" /quiet  was not successful.

    Exit code was '1603' Error Message:
 .
The install of nodejs.install was NOT successful.
Error while running 'C:ProgramDatachocolateylibnodejs.installtoolschocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 package(s). 1 package(s) failed.
 See the log for details (C:ProgramDatachocolateylogschocolatey.log).
Failures:
 - nodejs.install
PS C:GitProjectsreporting> choco install nodejs.install
Installing the following packages:
nodejs.install
By installing you accept licenses for the packages.

asked Apr 13, 2016 at 12:18

Slinky's user avatar

I had same problem with Win-7 with node-v6.10.3-x64.msi and node-v6.10.3-x86.msi installers.

Solution:

Download the Zipped version; When extracting, note the file that causes error.
Then, using Explorer, drill down to the target folder, created an empty file, then copy the content of archived file into the new, empty file.

I think the FQ path to destination is too long. Following is the error message I received.

!   C:Users......Downloadsnode-v6.10.3-win-x64.zip: Cannot create node-v6.10.3-win-x64node_modulesnpmnode_modulesnpm-registry-clientnode_modulesnpmlognode_modulesgaugenode_modulesstring-widthnode_modulesis-fullwidth-code-pointnode_modulesnumber-is-nanpackage.json

!   The system cannot find the path specified.

answered Jun 1, 2017 at 20:52

Starunit's user avatar

1

I the exact same error in Windows 10.

After launched my shell, making sure I was running as administrator, it worked.

answered May 12, 2016 at 2:37

Michael Paulukonis's user avatar


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

43 826

Привет! Рассмотрим установку 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

Hello there Readers, welcome to the first episode of YPOS(Your Problems Our Solution). In this series we try to solve your each and every problem related to coding and computers which you face in your day to day life.

Today we are going to tell you the tutorial by which you can install Node.js in your Old Antique Windows 7 system [lol just kidding:)].

How To Install Node.js on Windows 7

You may be getting this error dialog box whenever you are trying to install Node.js on your Windows 7. This is because v13.40.0 LTS is the last installer that works on Windows 7.

How To Install Node.js on Windows 7

Doesn’t matter whether you are using Windows 7 Home, Ultimate or Professional, this method works absolutely fine with each of them.

This method hardly takes 1 Minute to install node.js on your Windows 7 and will work completely fine without showing any of the error messages.

So, without wasting your time let’s jump to the Solution of Installing Node.js on your Windows 7.

How to Install Node.js On Windows 7 [ Step by Step Guide]

  1. To install the last stable version which works absolutely fine on Windows 7. Click this – Click Me
  1. Select node-v13. 14.0-x64.msi from the list or simply download Directly from Here.
  1. Click the launch to install Node.js in your system.
  1. Click Run

How To Install Node.js on Windows 7

  1. Click Next

How To Install Node.js on Windows 7

  1. Then Click on I accept the terms in the License Agreement (bla bla bla. . .) and then Click Next.

How To Install Node.js on Windows 7

  1. Choose the location where you want to install node.js in your system and then click Next.

How To Install Node.js on Windows 7

  1. Then Click on Next in custom Setup (you don’t have to do anything on this page)

How To Install Node.js on Windows 7

  1. Finally the moment we were all waiting for “CLICK ON INSTALL”.

How To Install Node.js on Windows 7

  1. You will see a dialog box popping up after a few seconds, just select Yes and forget about the rest.
  1. About so much of hard work(=_=), Finally Node.js is installed in your Window 7.  

How To Install Node.js on Windows 7

Go and have some fun.

How To Check Whether Node.js is installed on your Windows 7 or Not

So, you want to check whether Node.js is installed in your system or not. That means you don’t have trust in me, Ok then good bye 🙁 [lol just kidding]

Follow these Steps to check Whether node.js is working or not 

  1. Go to Start, type cmd and click on cmd.exe
  2. Type node and press Enter.

If you can see something like this on your screen, that means Node.js is installed on your Windows 7 and working perfectly.

How To Install Node.js on Windows 7

If you want to check which npm version is installed simply type npm -v and hit that big juicy ENTER key on your keyboard.

How To Install Node.js on Windows 7

You will get to know the npm version installed in your System.

Conclusion

That’s all for today my happy audience. I hope this tutorial helped you to install Node.js on Your Windows 7

But by any chance, if this method didn’t work out then time to say goodbye to your Old Operating system just throw it out of your window. (lol just kidding, don’t take it seriously) [@[email protected]].

If this method didn’t work out then contact us in the comment section, we would feel delighted to help you.

I will meet you guys next time with an amazing solution like this one. Till then Like the Post and Subscribe our Channel [ohh. . . Sorry, I forgot this is not Youtube]

Share this Post who is in need of this Solution.

Broz Who Code 

CodingBroz

Дата: 22.09.2021

Многие пользователи компьютеров до сих пор не перешли на актуальную версию ОС и сидят на Windows 7. Данная версия считается одной из самых популярных и еще долго будет использоваться даже без официальной поддержки.

К сожалению многие разработчики стороннего софта уже сейчас начинают отказываться от поддержки Windows 7. В их числе и разработчики Node.js — популярной среда выполнения JavaScript. Благодаря Node.js разработчики могу запускать свои JS-приложения прямо на компьютере в обход браузера.

Ошибка Node.js на Win 7

Если вы сейчас перейдете на официальный сайт Node.j и скачаете установочный файл для Windows, то при запуске получите ошибку

“The Application is only supported on windows 8.1, windows server 2012 R2, or Higher”

Node.js is only supported on windows 8.1

Чтобы установить программу необходимо скачать более раннюю версию Node.js 13.14.0 по ссылке.

После того как скачаете и установите программу проверьте, что Node.js работает. Наберите в командной строке две команды.

node js check install

Вот так просто можно скачать и установить Node.js на ОС Windows 7, но лучше всего перейти на актуальную версию операционной системы.

nodejs

node.js

windows 7

npm


Не забудьте сказать спасибо. Поставьте лайк!

Содержание

  1. Установка Node.js на Windows 7
  2. Решение
  3. Проверка работы Node.js и npm
  4. Как установить node.js на windows: подробная инструкция
  5. Установка
  6. Запуск приложения на Node.js в браузере
  7. Установка пакетов модулей через npm
  8. Как установить Node.js и проверить его работу
  9. Установка Node.js
  10. Проверяем работу Node.js
  11. Как установить Node.js и NPM на Windows
  12. Предисловие
  13. Описание установки
  14. Этапы установки
  15. Тестируем
  16. Как обновить Node.js?
  17. Как установить Node.js
  18. Установка Node.js на Windows
  19. Установка Node.js на OS X

Установка Node.js на Windows 7

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

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

Решение

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

nodejs v1314Node.js v13.14.0

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

image

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

nodejs 1

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

nodejs 2

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

nodejs 3

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

nodejs 4

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

nodejs 6

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

Проверка работы Node.js и npm

Осталось проверить работу Node.js, для этого:

image 1

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

cmd

node work 1

Источник

Как установить node.js на windows: подробная инструкция

nodejs %D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0

В наше время много open source проектов зависят от node. Поэтому нам задают много вопросов о том «Как установить node.js?».Что же нам делать если мы хотим разработать и протестировать node приложение на нашем компьютере c Windows, прежде чем залить его на сервер?

Настроить node.js на PC очень просто, в этой статье мы разберем:

Установка

На официальном сайте есть инсталляторы для Windows и Mac OS, так же есть бинарники для Linux пользователей. Мы опишем установку на Windows, но общий процесс одинаков для других ОС.

Для того чтобы начать зайдите на страницу загрузки Node.js. Выберите установщик который вы хотите скачать и установить. Мы будем использовать 64-bit Windows Installer. Вам следует использовать пакет исходя от вашей конфигурации.

Screenshot 1

После загрузки файла, кликаем по нему и запускаем мастер установки.

Screenshot 2

Проходим по шагам и ждем пока мастер завершит установку.

Screenshot 3

Screenshot 4

Вот и все. Рекомендуется оставлять стандартные настройки во время инсталляции.

Запуск приложения на Node.js в браузере

После установки node.js платформы, следующий шаг который следует сделать, это запустить node приложение с вашего компьютера. Мы создадим простое приложение для демонстрации.

Создайте папку для вашего приложения. Я создал папку project на диске C:/ внутри которой создал еще каталог myapp.

Screenshot 5

Внутри каталога myapp создайте файл hello.js и напишите в нем следующий код:

Представленный выше код слегка модифицированная версия кода с официального сайта node, который создает HTTP web server на вашем компьютере.

Теперь мы готовы запустить наше первое Node.js приложение.

Откройте Node.js командную строку она находится в меню Пуск Windows, или воспользуйтесь поиском.
Screenshot 6

Командная строка node использует интерфейс (CLI). С помощью командной строки войдите в каталог myapp

Далее давайте запустим файл hello.js. Пишем команду

Если все прошло отлично, вы увидите следующее сообщение в командной строке.
Screenshot 7
В своем любимом браузере введите URl:

Вы должны увидеть сообщение Hello word в окне браузера, которое означает что все работает отлично.

Screenshot 8Установка пакетов модулей через npm

Пакетные модули делают Node.js более мощной средой для разработки приложений. Npm это стандартный пакетный менеджер, он автоматически устанавливается с ноде по умолчанию.

Допустим мы хотим использовать базу данных для нашего приложения, давайте установим Mysql. Введем следующую команду в командной строке node.js:

Приведенная выше команда скачает и установит пакет mysql из npm. После установки вы должны увидеть следующее.

Screenshot 9

Остальной список модулей вы можете посмотреть на сайте npm

Источник

Как установить Node.js и проверить его работу

Привет! В этой статье расскажу, как установить Node.js. Причем не важно, какая у вас система — Windows или macOS.

Node.js — это технология, программная платформа, позволяющая писать серверный код на языке JаvaScript. Она представляет из себя компилятор, построенный на движке V8, зашитый в Google Chrome.

V8 — это высокопроизводительный движок JavaScript и WebAssembly от Google с открытым исходным кодом, написанный на C ++.

Он используется в Chrome и Node.js и других; реализует ECMAScript и WebAssembly, работает в системах от Windows 7 и более новых, macOS 10.12+ и Linux, использующих процессоры x64, IA-32, ARM или MIPS.
V8 может работать автономно или может быть встроен в любое приложение C ++.

Установка Node.js

nodejs install 1Nodejs — current version

Ваша система определяется автоматически. Выбираем Current (текущую версию). Это обычный exe файл, который устанавливается как и любая другая программа.

2. Следуйте всем настройкам по умолчанию, нажимая Next для продолжения:

Принимаем условия использования, ставим галочку:

Папка назначения, куда будет установлен Node.js. По умолчанию, это Program Files на диске C:

Настройки по умолчанию. Модули, которые установятся, здесь важно наличие npm modules:

Предлагают установить дополнительные инструменты — здесь галочку не ставим:

Install — нажимаем для запуска инсталляции или Back, чтобы вернуться и изменить настройки:

После успешной установки нажимаем Finish:

Проверяем работу Node.js

1. На вашем виртуальном сервере, у меня это OpenServer/domains:

-vversion — версия

Если видим версию (на скрине у меня 6.7.0), значит всё ОК!

2.2. Здесь же, в консоли, переходим к папке node: cd node и командой dir проверяем содержимое папки. Наблюдаем наличие нашего index.js

2.3. Делаем компиляцию командой: node index

2.4. И вот он, долгожданный результат: Hello, World!

Всё работает! Поздравляю! 🙂 Или нет? Пишите.

Источник

Как установить Node.js и NPM на Windows

JavaScript все крепче и крепче закрепляет себя на позиции языка go-to типа для веб-разработчиков. Front-end разработчики используют JavaScript для того, чтобы добавить интерактивности пользователям, а так же напрямую общаться с back-end сервисами посредством AJAX.

JavaScript предоставляет огромное количество возможностей. Вы можете спокойно улучшать ваши навыки и при этом не волноваться, что не сможете разрабатывать полноценные веб-приложения. Ключевым компонентом Node.js является революция Сhrome версии V8 JavaScript, которая позволяет использовать JavaScript даже на серверной части.

Node.js так же может быть использован для написания desktop приложений, а так же для разработки инструментов, которые делают процесс разработки веб-приложений еще быстрее. Например, с помощью Node.js вы можете превратить CoffeeScript в JavaScript или SASS в CSS, а так же многое другое.

NPM помогает устанавливать удобным образом разные модули для Node.js.

Предисловие

Node — не является обычной desktop программой. Он не установится как Word или Photoshop и у вас не появится ярлыка на рабочем столе. Им можно воспользоваться только с помощью консольные инструкций (с которыми вы хотя бы чуть-чуть должны быть знакомы). В первое время вам будет казаться, что это не удобно, но в скором времени вы привыкните и все встанет на свои места.

Описание установки

Установка Node.js и NPM очень простая. Все что вам нужно сделать — это зайти на официальный сайт разработчика, скачать файл и установить его на своем компьютере.

Этапы установки

Тестируем

Для того, чтобы убедиться что все было правильно установлено следуйте три простых этапа ниже.

66fc20a582269a01efeef03bed161493

Как обновить Node.js?

Чтобы его обновить, вам нужно снова скачать установщик и повторить весь процесс с самого начала.

Источник

Как установить Node.js

unknown raccoon.v4

Устанавливаем программную платформу Node.js, для того чтобы дать JavaScript возможность взаимодействовать с устройствами ввода-вывода через свой API и подключать разные внешние библиотеки.

Установка Node.js на Windows

Для начала необходимо установить правильную консоль для WIndows.

После этого можно переходить к установке Node.js. Для Windows есть только один способ.

Необходимо перейти на официальный сайт https://nodejs.org и на главной странице скачать последнюю стабильную версию.

Официальный сайт https://nodejs.org.

После загрузки инсталлятор следует запустить и установить Node.js, как любую другую программу.

Проверка версии и установка пакета.

Установка Node.js на OS X

Заходим на сайт https://nodejs.org и на главной странице скачиваем последнюю стабильную версию, нажав на соответствующую кнопку.

Официальный сайт https://nodejs.org.

После скачивания достаточно установить пакет через инсталлятор и можно начинать пользоваться.

Источник

На чтение 3 мин. Просмотров 77 Опубликовано 08.02.2021

Я пробовал следующие методы, все из которых не увенчались успехом

  1. Запуск установщика .msi через графический интерфейс с сайта Node (для запуска от имени администратора не задан вариант)
  2. Запуск установщика .msi через командную строку от имени администратора
  3. Запуск установщика choclatey от имени администратора

Вот вывод choclatey как видно в журнале

  Загрузка 64-разрядной версии nodejs.install с https://nodejs.org/dist/v5.10.1/node-v5.10.1-x64.msi  'Установка nodejs.install ... [ОШИБКА] Запуск msiexec с/i "C:  Users  user1  AppData  Local  Temp  chocolatey  nodejs.install  5.10.1  nodejs.installInstallInstall.msi"/quiet не был  успешно.  Код выхода: «1603» Возраст сообщения об ошибке:.  В C:  ProgramData  chocolatey  helpers  functions  Start-ChocolateyProcessAsAdmin.ps1: 92 символа: 10 + throw  choco install nodejs.install Установка следующих пакетов: nodejs.install При установке вы принимаете лицензии на  пакеты.  

У меня была такая же проблема с Win-7 с установщиками node-v6.10.3-x64.msi и node-v6.10.3-x86.msi.

Решение:

Загрузить версию в архиве; При извлечении обратите внимание на файл, который вызывает ошибку. Затем с помощью проводника перейдите к целевой папке, создайте пустой файл, затем скопируйте содержимое заархивированного файла в новый пустой файл.

Я думаю, что путь FQ до пункта назначения слишком длинный. Ниже приводится полученное мной сообщение об ошибке.

 !  C:  Users  ......  Downloads  node-v6.10.3-win-x64.zip: невозможно создать node-v6.10.3-win-x64  node_modules  npm  node_modules  npm-registry-client   node_modules  npmlog  node_modules  gauge  node_modules  string-width  node_modules  is-fullwidth-code-point  node_modules  number-is-nan  package.json!  Система не может найти указанный путь.  

Поделиться

Улучшите этот ответ

отредактировал 03 июня ’17 в 0:03

ответил 01 июня ’17 в 20:52

  • Спасибо за форматирование сообщения, @BSMP. Ценить это. – Starunit 02 июня ’17 в 23:49

добавить комментарий |


У меня была такая же проблема с Win-7 с node-v6.10.3-x64.msi и node-v6.10.3-x86.msi установщики.

Решение:

Загрузите заархивированную версию; При извлечении обратите внимание на файл, который вызывает ошибку. Затем с помощью проводника перейдите к целевой папке, создайте пустой файл, затем скопируйте содержимое заархивированного файла в новый пустой файл.

Я думаю, что путь FQ до пункта назначения слишком длинный. Ниже приводится полученное мной сообщение об ошибке.

 !  C:  Users  ......  Downloads  node-v6.10.3-win-x64.zip: невозможно создать node-v6.10.3-win-x64  node_modules  npm  node_modules  npm-registry-client   node_modules  npmlog  node_modules  gauge  node_modules  string-width  node_modules  is-fullwidth-code-point  node_modules  number-is-nan  package.json!  Система не может найти указанный путь.  

Поскольку поддержка Windows 7 для Nodejs закончилась. Мне показалось, что ручная установка проще. см. этот комментарий на github: https://github.com/nodejs/node/issues/33000#issuecomment-644530517

Выполните те же действия с двоичным zip-файлом из: здесь

Поделиться

Улучшить этот ответ

отредактировано 16 декабря ’20 в 9:08

ответил 16 дек. ’20 в 8:37


Поскольку поддержка Windows 7 для Nodejs закончилась. Мне показалось, что ручная установка проще. см. этот комментарий на github: https://github. com/nodejs/node/issues/33000 # issuecomment-644530517

Проделайте те же шаги с двоичным zip-файлом из: здесь


У меня точно такая же ошибка в Windows 10.

После запуска моего оболочка, убедившись, что я работаю как администратор, она работала.

Поделиться

Улучшите это ответ

ответ дан 12 мая ’16 в 2:37


Точно такая же ошибка в Windows 10.

После запуска моей оболочки, убедившись, что я работаю как администратор, это сработало.

Мне надо обновиться до node 14. Скачивая инсталлер с офф сайта ноды, после установки мне говорят — «Эта версия ноды для винды 8.1». Видел сайты с нодой для вин7, но там нету 14 или выше. Порыскал на офф сайте, и нашел статью — «Установка ноды через пакетный менеджер», там для винды они показывают в консольке установить chocolate и через него поставить ноду (насколько я понял). Но там такая ошибка:

Код

C:Windowssystem32>cinst nodejs
Chocolatey v0.10.15
[Pending] Removing incomplete install for 'KB3035131'
Installing the following packages:
nodejs
By installing you accept licenses for the packages.

nodejs.install v16.3.0 [Approved]
nodejs.install package files install completed. Performing other installation st
eps.
The package nodejs.install wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): Y

Installing 64 bit version
Installing nodejs.install...
WARNING: Generic MSI Error. This is a local environment error, not an issue with
 a package or the MSI itself - it could mean a pending reboot is necessary prior
 to install or something else (like the same version is already installed). Plea
se see MSI log if available. If not, try again adding '--install-arguments="'/l*
v c:nodejs.install_msi_install.log'"'. Then search the MSI Log for "Return Valu
e 3" and look above that for the error.
ERROR: Running ["C:WindowsSystem32msiexec.exe" /i "C:ProgramDatachocolatey
libnodejs.installtoolsnode-v16.3.0-x64.msi" /quiet ADDLOCAL=ALL REMOVE=NodeEt
wSupport ] was not successful. Exit code was '1603'. Exit code indicates the fol
lowing: Generic MSI Error. This is a local environment error, not an issue with
a package or the MSI itself - it could mean a pending reboot is necessary prior
to install or something else (like the same version is already installed). Pleas
e see MSI log if available. If not, try again adding '--install-arguments="'/l*v
 c:nodejs.install_msi_install.log'"'. Then search the MSI Log for "Return Value
 3" and look above that for the error..
The install of nodejs.install was NOT successful.
Error while running 'C:ProgramDatachocolateylibnodejs.installtoolschocolat
eyInstall.ps1'.
 See log for details.

Лог почти ничем не отличается. Так как это сделать? Как поставить ноду на вин7?

Добавлено через 2 минуты
У меня стоит нода 13

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Здесь я расскажу как установить 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 канал и группу Вконтакте.

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

Оценка:

Загрузка…

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

Понравилась статья? Поделить с друзьями:
  • Node js windows server 2012 r2
  • Node js windows 7 x64 последняя версия
  • Node js windows 7 last version
  • Node js install windows from cmd
  • Node js for windows 7 x64