node.js:无法正确安装express

标签 node.js npm

我在安装 express 时遇到问题。在我执行 npm installexpress 后,express 仍然不可见。 IE。我无法执行 express appname。我运行的是Win7。哪里做错了?

UPD。我正在关注 this教程

最佳答案

自express 4.0以来,CLI工具不再是主要express包的一部分。如果您想拥有生成器,则必须单独安装它:

    npm install -g express-generator

see here

关于node.js:无法正确安装express,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23239524/

相关文章:

typescript - 使用 npm run build 时如何删除 Typescript 断言?

azure - 使用 npm 包安装 Azure Functions 时出错

javascript - npm 安装了很多依赖

javascript - 无法返回node.js中的变量

npm - 运行 `npm ci` 返回 `pkg-dir not accessible from find-cache-dir`

node.js - 用于选择性推送的通知系统的 Redis pub/sub 模型

node.js - 为什么重定向后无法设置 header ?

node.js - 使用 npm 作为自定义插件管理器?

javascript - 下划线js替换对象中的项目

node.js - CommonJS 是同步的,但如果调用异步函数会发生什么