如何从本地安装运行expressJS CLI?

问题描述 投票:1回答:1

- package.json (express ...

You can still install the global version too. They will be installed in different locations.

/my-project
    |- package.json (express included)
    |- node_modules (express installed)
    |- app.js  

Or you can invoke the local one in your directory -

Edit: The above is not the case with latest versions. It is true in the one i have installed (3.4.8).
node.js express command-line-interface
1个回答
4
投票

And then

./node_modules/express/bin/express

我有一个下面的项目。

现在我可以在app.js模块中使用expressJS,但是,如何使用它的CLI?

npm install express-generator

我有一个关于ExpressJS本地安装的问题(我知道全局使用,但我现在不这样做)。我有一个项目:我的项目。

© www.soinside.com 2019 - 2024. All rights reserved.