Error: Cannot find module 'express'

来源:互联网 发布:苹果手机挣钱软件 编辑:程序博客网 时间:2024/05/19 23:17

1、错误描述

> var express=require('express');Error: Cannot find module 'express'    at Function.Module._resolveFilename (module.js:325:15)    at Function.Module._load (module.js:276:25)    at Module.require (module.js:353:17)    at require (internal/module.js:12:17)    at repl:1:13    at REPLServer.defaultEval (repl.js:262:27)    at bound (domain.js:287:14)    at REPLServer.runBound [as eval] (domain.js:300:12)    at REPLServer.<anonymous> (repl.js:431:12)    at emitOne (events.js:82:20)>

2、错误原因

     Express基于 Node.js 平台,快速、开放、极简的 web 开发框架,如果要使用这个框架,需要安装。


3、解决办法

     安装Express框架

0 0