CNode

在安装使用express时,有时候会出现500 Error: Cannot find module 'jade'错误

Aarrowing发布于14 年前最后回复14 年前1 回复10907 浏览0 收藏

解决方法如下: https://github.com/visionmedia/jade/issues/270

you'll want to add them to your package.json as dependencies, and npm install -d where -d is just for debugging output so you can see if npm is working :D haha otherwise it's very quiet

其意思应该是,你的package.json里没有添加相应的jade依赖配置

使用npm install -d 可以自动配置package.json,并安装所有需要依赖的包

不知道是否有误,菜鸟勿喷。。。

查看回复

回复 (1)

S
suboy13#1·14 年前

你的NODE_PATH环境变量没配对 linux 在 /usr/lib/node_modules/ windows 在 C:\Documents and Settings(用户名)\Application Data\npm\node_modules

参与回复
登录后即可参与回复。登录