-bash: express: command not found after installing express and express-generator with NPM

后端 未结 1 1186
感情败类
感情败类 2021-01-06 16:36

I have a server with NodeJS and NPM already installed. Then process to install Express with NPM:

$ npm install express -g

It answered:

相关标签:
1条回答
  • 2021-01-06 17:37

    Installing express-generator, we see

    /var/www/site/npm/bin/express -> /var/www/site/npm/lib/node_modules/express-generator/bin/express
    

    Add /var/www/site/npm/bin to your $PATH

    0 讨论(0)
提交回复
热议问题