Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node JS is not installed on win machine

Tags:

node.js

When I am trying to install node on win machine, I always get this error:

An error occurred while applying security settings.
Authenticated Users is not a valid user or group. This
could be a problem with the package, or a problem
connecting to a domain controller on the network. Check
your network connection and click Retry, or Cancel to
end the install.

What may be a reason and how it may be solved? Thanks

enter image description here

like image 677
Andrei Avatar asked Jul 02 '21 13:07

Andrei


People also ask

Can I install node js on Windows?

You can install Node. js on your Windows system using the . msi installer from the official website of Node. You can install Node.

Is node JS installed on my machine?

To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print a version number, so you'll see something like this v0. 10.35 .

Why node is not installed?

Install node using the windows installer. Make sure the files were extracted to C:\Program Files (x86)\nodejs\ Make sure that my Path enviorment variable contains C:\Program Files (x86)\nodejs\ open up a command prompt and run node -v.

Do I need to install Node JS on Windows?

With Node.js being a popular runtime environment for JavaScript applications and various tools, it is no wonder that you need to install Node.js on your Windows machine. This tutorial will provide you with a step-by-step guide on how to do that. From where to download Node.js?

How do I install node and NPM on Windows?

Installing Node and NPM is pretty straightforward using the installer package available from the Node.js® web site. Download the Windows installer from the Nodes.js® web site. Run the installer (the .msi file you downloaded in the previous step.)

How do I test if Node JS is installed correctly?

To test the node.js is install, open power shell or command prompt (cmd) and type node –v. If the node.js is install properly in your system print something like that v4.4.3.

What version manager should I use to install node?

We strongly recommend using a Node version manager like nvm to install Node.js and npm. We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.


3 Answers

Open Command Prompt (cmd.exe) as administrator and type:

net localgroup /add "Authenticated Users"

Then click the "Retry" button or run the installation file again.

like image 170
Jake Holehand Avatar answered Sep 30 '22 16:09

Jake Holehand


Try the Previous Version (v14.17.1), worked for me.
The error seems to be related to non domain joined Computers with Admin User.

Edit:
The Version v14.17.3 seems to have a fix (stated in the node Gitlab Issue Install directory permissions broken on non-English Windows systems)

like image 42
JIT Solution Avatar answered Sep 30 '22 16:09

JIT Solution


Reason has been provided by @JIT Solution

To resolve: add the missing group.

  1. Open the "Computer Management" tool

  2. Open the "Local Users and Group" tree.

  3. Open the "Groups" folder and search for a profile named "Authenticated Users", it should be missing.

  4. Right-click on the Groups folder and select New Group. Type in "Authenticated Users" (case sensitive) as the New Group name and select Create.

like image 20
Philip Avatar answered Sep 30 '22 14:09

Philip