nodejs Error: Cannot find module 'cookie-session'
来源:互联网 发布:h3c acl 配置端口访问 编辑:程序博客网 时间:2024/05/19 09:15
在学习nodejs时,碰到了下述错误:
module.js:340
throw err;^
Error: Cannot find module 'cookie-session'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/linhaibo/node/nodejs_connect/app.js:11:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
解决方式,返回到node安装路径下的node_modules,运行:
sudo npm install cookie-session,即可解决该问题。
0 0
- nodejs Error: Cannot find module 'cookie-session'
- Nodejs Error: Cannot find module 'unicode/category/So'
- nodejs express 启动报错:Error: Cannot find module 'xxx'
- Nodejs Error: Cannot find module 当前文件夹下的模块
- Cannot find module 'express-session'
- [乐意黎]Nodejs采集程序抛Error: Cannot find module 'superagent' 及 Cannot find module 'superagent' 等的解决方法
- Error: Cannot find module 'express'
- Error: Cannot find module 'express'
- Error: Cannot find module 'express'
- Error:Cannot find module 'stylus'
- Cannot find module “async” Error
- Error:Cannot find module 'stylus'
- nodejs报错:Cannot find module 'ejs'
- nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
- nodeJs启动的时候:Error: Cannot find module '../build/Release/bson'的解决办法
- 500 Error: Cannot find module 'jade'
- Error: Cannot find module '../build/Release/canvas'
- Error: Cannot find module 'iconv-lite'
- 《Linux Shell》笔记之sed与正则表达式(实例总结) 未完待续
- IOS自适应前段库-Masonry的使用
- hdu 4472 Count 动态规划
- 物联网核心协议—消息推送技术演进
- 向前(上)兼容与向后(下)兼容的区分
- nodejs Error: Cannot find module 'cookie-session'
- IOS--错误集锦--cell.accessoryType不显示内容
- 约瑟夫环 猴子选大王的问题
- multithreading--创建Thread线程的第二种方式,Runnable
- RxJava 各种操作符(2、3)
- Struts2标签实现for循环
- Android关机闹钟实现
- Ubuntu 执行属性为executable (application/x-executable)的文件
- ThinkPHP函数详解:C方法