Windows node.js npm install express -g Cannot find module 'express'
2013-08-30 14:03
1246 查看
Method 1:
在当前app目录下执行npm install express
Method 2:
1. 当前用户环境变量添加NODE_PATH并设置路径为C:\Users\YOUR_USER_NAME\AppData\Roaming\npm\node_modules
2. 将%NODE_PATH%添加到当前用户环境变量path中
Reference:
http://blog.i-evaluation.com/2012/09/17/error-cannot-find-module-express/
http://stackoverflow.com/questions/9587665/nodejs-cannot-find-installed-module-on-windows
在当前app目录下执行npm install express
Method 2:
1. 当前用户环境变量添加NODE_PATH并设置路径为C:\Users\YOUR_USER_NAME\AppData\Roaming\npm\node_modules
2. 将%NODE_PATH%添加到当前用户环境变量path中
Reference:
http://blog.i-evaluation.com/2012/09/17/error-cannot-find-module-express/
http://stackoverflow.com/questions/9587665/nodejs-cannot-find-installed-module-on-windows
相关文章推荐
- Windows node.js npm install express -g Cannot find module 'express'
- Windows node.js npm install express -g Cannot find module 'express'
- Windows node.js npm install express -g Cannot find module 'express'
- Node.js Cannot find module 'xxx' 问题解决
- Nodejs Error: Cannot find module 'unicode/category/So'
- Error: Cannot find module 'express'
- node开发:windows环境下npm Cannot find module 'semver'
- torch7-- errors using gfx in the tutorial--Cannot find module 'pty.js'--[gfx.js] rendering cell
- Cannot find module '../build/Debug/iconv.node
- nodejs Cannot find module"...\.js" 解决方法
- nodejs express 启动报错:Error: Cannot find module 'xxx'
- 【node.js】windows安装express:'express' 不是内部或外部命令,也不是可运行的程序或批处理文件。
- 关于cannot find module 'e:\应用程序\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'
- Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' 解决方案
- npm-cli----Cannot find module 'D:\node\nodejs\node_module\bin\npm-cli.js'
- nodejs express 启动报错:Error: Cannot find module 'xxx'
- node.js cannot find module
- forever 动行出错Cannot find module './daemon.v0.10.33'解决方法
- Node.js cannot find module ***
- Error- Cannot find module 'gulp-clone'问题的解决