Use npm to install express-generator, but commands such as express- h can't find it. I don't know what's going on. I kneel down and ask for help.

wants to use the Express application generator to generate the project skeleton, but shows that-bash: express: command not found.
the same method can be operated on other computers. All the installation steps come from the official website, but express is still not found

.

Mar.03,2021

does not add an environment variable, and the instruction is certainly not found.
1. Enter sudo vi ~ / .bash_profile on the command line to enter the interface for configuring the environment.
2. Press the I key to enter vim editing mode, and then add your path at the end:
export PATH=$PATH:/Users/liuyu/.npm-global/bin/express
3, esc exit vim editing mode, enter : WQ! to exit saving.


after installation, you need to reopen the command line to take effect


I encountered the same problem with you yesterday. The final solution is to add node to the internal variable

// for linux bash
//  export PATH=nodebin:$PATH
> export PATH=/home/cjh/node-v10.15.1-linux-x64/bin:$PATH
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-1b35d5e-2bfbc.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-1b35d5e-2bfbc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?