[livingbody@localhost ~]$ cnpm install express ✔ Installed 1 packages ✔ Run 0 scripts ✔ All packages installed (49 packages installed from npm registry, used 2s(network 2s), speed 49.51kB/s, json 48(109.61kB), tarball 0B) [livingbody@localhost ~]$ express --help bash: express: 未找到命令... 安装软件包“nodejs-express”以提供命令“express”? [N/y] n [livingbody@localhost ~]$ cnpm install -g express-generator Downloading express-generator to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/express-generator_tmp Copying /usr/local/node-v10.13.0-linux-x64/lib/node_modules/express-generator_tmp/_express-generator@4.16.0@express-generator to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/express-generator Installing express-generator's dependencies to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/express-generator/node_modules [1/5] commander@2.13.0 installed at node_modules/_commander@2.13.0@commander [2/5] sorted-object@2.0.1 installed at node_modules/_sorted-object@2.0.1@sorted-object [3/5] ejs@2.5.7 installed at node_modules/_ejs@2.5.7@ejs [4/5] mkdirp@0.5.1 installed at node_modules/_mkdirp@0.5.1@mkdirp [5/5] minimatch@3.0.4 installed at node_modules/_minimatch@3.0.4@minimatch All packages installed (9 packages installed from npm registry, used 2s(network 2s), speed 46.33kB/s, json 9(16.66kB), tarball 81.66kB) [express-generator@4.16.0] link /usr/local/node-v10.13.0-linux-x64/bin/express@ -> /usr/local/node-v10.13.0-linux-x64/lib/node_modules/express-generator/bin/express-cli.js [livingbody@localhost ~]$