mongoose node.js
文章平均质量分 56
馍馍也饿
这个作者很懒,什么都没留下…
展开
-
npm ERR! code 1 npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! no
**npm ERR! code 1 npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1 npm ERR! gyp ERR! no**像这种安装各种包比如 npm install node-sass 还有 npm install 等 gyp报错的 直接切换淘宝镜像安装,大部分直接解决,屡试不爽~~~解决方案:1.配置淘宝镜像:npm config set registry https://registry.n.原创 2021-04-28 21:45:24 · 1607 阅读 · 0 评论 -
Error: Cannot find module ‘C:\Node\code\mybook\node_modules\cookie-signature\index‘.
这里写自定义目录标题报错代码:PS C:\Node\code\mybook> nodemon[nodemon] 2.0.7[nodemon] to restart at any time, enter rs[nodemon] watching path(s): .[nodemon] watching extensions: js,mjs,json[nodemon] starting node index.jsinternal/modules/cjs/loader.js:311thro原创 2021-04-26 11:01:19 · 427 阅读 · 0 评论 -
创建mongodb数据库管理账号之后,使用powershell 使用show dbs命令查看数据库报错
创建mongodb数据库管理账号之后,使用powershell 使用show dbs命令查看数据库报错这是一个常见的细节问题:show dbs2021-03-15T11:26:20.064+0800 E QUERY [js] Error: listDatabases failed:{“ok” : 0,“errmsg” : “command listDatabases requires authentication”,“code” : 13,“codeName” : “Unauthori原创 2021-03-15 12:01:38 · 1256 阅读 · 0 评论 -
mongoose.connect()方法在powershell中报错
mongoose.connect()方法在powershell中报错报错内容:网站服务器连接成功,请访问localhost(node:14116) Warning: Accessing non-existent property ‘MongoError’ of module exports inside circular dependency(Use node --trace-warnings ... to show where the warning was created)(node:1411原创 2021-03-14 09:53:29 · 430 阅读 · 0 评论