在安装使用express时,有时候会出现500 Error: Cannot find module 'jade'错误
发布于 12 年前 作者 arrowing 10119 次浏览 最后一次编辑是 8 年前

解决方法如下: 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 回复

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

回到顶部