Node.js, is installed on windows 10 but cannot be used on cmd, but works on powershell. Why?

environment variables have been configured, but commands such as node cannot be used on cmd. Commands such as node-v and npm-v can be used on powershell, but when I try to install uglify-js globally on powershell, I show that the installation is successful, but use uglifyjs and other commands to prompt

.
"node" 

Why? Whether it will be a question of the command permission setting of cmd, but I operate under the administrator user no matter on cmd or powershell. I am too confused. Please answer the question.

Mar.07,2021

    After
  1. Node is installed, a shortcut to Node.js command promet should be generated in the program group of the start menu, pointing to cmd , but injecting a bat script to set environment variables. This is generally fine (though it may start more slowly)
  2. Open "Settings", then search for "Advanced" directly, then click "View Advanced system Settings", and click "Environment variables" directly below. Button, in the pop-up window, confirm that the path of the system variable contains the installation directory of Node.js (of course, npm and node_moudle had better also confirm)

you should print out the environment variables and check them under the corresponding shell . Determine whether there is a directory for node commands


cmd and powershell . Take a look at this: shell-powerful.html" rel=" nofollow noreferrer "> the power of PowerShell .


node's environment variable is not set. If


calls the node command directly in cmd, you need to set the environment variable first. I suggest you use powershell or gitbash


to solve the problem, Lord, I have also encountered this problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34c3f-2bf58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34c3f-2bf58.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?