The Express command cannot be executed after the Express is installed directly on the command line from the official website of Express, which is not recognized by the command line in CMD. The basic can be judged that the environment variable configuration is not done here.
Uninstalling Nodejs Reload
First configure the NPM global module's storage path and the cache path (if the default installation is on the C drive, the following input can be used directly on the command line). Custom installation is changed to the path you set yourself.)
npm config set prefix "C:\Program Files (x86)\nodejs\node_global"npm config set cache "C:\Program Files (x86)\nodejs\node_cache"
Configuring Environment variables
Turn on the computer, System Properties-Advanced system settings-environment variables, under system Variables , new Node_path, Value C:\Program Files (x86) \nodejs\node_global (global path),%node_ path% "to the value of the path variable.
Execute epxress on the command line
There will be some hints indicating success.
- Other cases Restart the computer
Windows Global install Express but cannot command line execution