error
乔小乔jojo
https://jasmine-na.github.io/
展开
-
node Error: Most middleware (like session) is no longer bundled with Express and must be installed
Error: Most middleware (like session) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. 今天在实现mongodb数据库的翻译 2016-10-16 18:18:05 · 1588 阅读 · 0 评论 -
node.js中遇到SyntaxError: Use of const in strict mode
用Node.js的时候使用connect-mongo这个模块的时候出现SyntaxError: Use of const in strict mode这个错误,看了一下其中src/index.js的代码,使用了const、let、"use strict"这些高大上的东西,我的解决方法是:把connect-mongo版本降低一点,别用最新版。删除node_modules文件夹,翻译 2016-10-16 17:59:57 · 3387 阅读 · 0 评论 -
bower权限问题
装bootstrap的时候,先用sudo指令装了bower,但是一打 bower isntall bootstrap 就报错:Error: EACCES, permission denied '/Users/narumi/.config/configstore/bower-github.yml'You don't have access to this file.翻译 2016-10-14 23:11:15 · 599 阅读 · 0 评论 -
bower安装报错”Cannot be run with sudo”解决办法
在使用 bower 安装依赖包时有时会出现“permission denied”权限不足的问题,这时我们会想到用sudo,以root权限安装,但sudo后问题来了,又出现了”Cannot be run with sudo”问题。报错信息如下:Since bower is a user command, there is no need to execute it with superuse翻译 2016-10-14 23:09:08 · 1440 阅读 · 0 评论