mongoDB설정을 제대로 하고 환경설정도 했는데도 저 에러가 나서 검색을 돌렸는데 원래 처음 atals쓰는 사람에게 나타나는 오류라고 한다. ㅎㅎ
해결법은
1. SECURITY->Database Access 에 들어간다.
2. 사용자 이름 옆에 있는 EDIT 클릭
3. 귄한을 적당히 부여해준다.
나는 관리자로 설정했다.
끝!
해결법 출처는 이쪽..^_^
https://stackoverflow.com/questions/46649390/mongoerror-user-is-not-allowed-to-do-action
'Study > Node.js' 카테고리의 다른 글
[Node.JS] If the above error is not helpful, you may want to try EJS-Lint 오류 (0) | 2022.12.16 |
---|---|
Node.JS에러 - 로그아웃 오류(Error: req#logout requires a callback function) (0) | 2022.11.21 |
Node.js에러 - node:internal/modules/cjs/loader:936 throw err; (0) | 2022.10.22 |
Node.js 미들웨어 사용하기(bodyParser, compression) (0) | 2022.09.07 |
Node.js 시멘틱 URL (0) | 2022.09.06 |