오류&에러/NodeJS

    [NodeJS 오류] ERR_PACKAGE_PATH_NOT_EXPORTED

    [NodeJS 오류] ERR_PACKAGE_PATH_NOT_EXPORTED

    업무를 보고있는데 같은 로직을 태워야하는데 실행 경로가 다른 경우의 케이스가 있어서 로직을 private파일로 분리하고 두개의 경로에서 분리한 private 파일을 사용하도록 처리하는 도중 e2e 테스트를 하는데 오류가 발생하였다. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './base64' is not defined by "exports" in C:\Users\USER\Desktop\workspaces\보안상\이름바꿉니다\node_modules\js-base64\package.json at new NodeError (internal/errors.js:322:7) at throwExportsNotFound (internal/modules/esm/r..

    NodeJS로 express와 mongoDB 연결시 오류 해결 Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is o..

    NodeJS로 express와 mongoDB 연결시 오류 해결 Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is o..

    리액트를 간단하게 알아보기 위해 예전에 공부했던 내용으로 다시 리액트를 맛보기 하려던 도중 몽고디비를 연결하는 과정에서 오류가 발생했다. Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist 이라는 메세지와 함께... 사실 몽고디비 클러스터를 만들어두고 안쓴지 너무 오래되었는데 그동안 나는 자취를 시작해서 집도 바뀌고 컴퓨터도 맥으로 바뀌었다..

    [NodeJS] npm ERR! code ENOENT npm ERR! syscall rename

    [NodeJS] npm ERR! code ENOENT npm ERR! syscall rename

    회사 업무를 집에서 봐야할때나 재택근무를 할떄 TeamViewer라는 원격프로그램을 이용해서 회사 컴퓨터를 집 컴퓨터에서 사용할수 있도록 원격 환경을 만들어서 수행했었는데 집에서 회사 업무 환경 세팅도 해둘겸 세팅하는거 다시한번 해볼겸 집에 회사 개발환경을 세팅해보기로했다... ( 사실 최근에 신입분 세팅을 도와주는데 다 까먹어서 살짝 현타가 오기도했다. ) 이전에 잘 안되던 부분도 어찌어찌 잘 해결했는데 npm i 가 안되는것이다... 도대체 왜안되는거지!! npm WARN @name@version No repository field. npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path /home/cine/개인정보보호차.../node_modules/..

    ReferenceError: bodyParser is not defined

    ReferenceError: bodyParser is not defined

    ReferenceError: bodyParser is not defined at Object. (C:\study_nodejs_react\01_node_react_basic\index.js:8:9) at Module._compile (internal/modules/cjs/loader.js:1068:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module._load (internal/modules/cjs/loader.js:774:14) at Function.executeUserEntryPoint ..

    MongoInvalidArgumentError: No AuthProvider for DEFAULT defined.

    MongoInvalidArgumentError: No AuthProvider for DEFAULT defined.

    몽고디비와 노드를 연결하기위한 도중 또 이와 같은 에러를 만났다.. const mongoose = require('mongoose') mongoose.connect('mongodb+srv://cluster0.7sr4t.mongodb.net/myFirstDatabase') .then(() => console.log('MongoDB Connected...')) .catch(arr => console.log(arr)) 코드에 대체 무슨 문제가 있는가... MongoInvalidArgumentError: No AuthProvider for DEFAULT defined. at prepareHandshakeDocument (C:\mystudy\node_modules\mongodb\lib\cmap\connect.js..

    MongoParseError: options usecreateindex, usefindanmodify are not supported

    MongoParseError: options usecreateindex, usefindanmodify are not supported

    노드와 몽고디비를 연결하기 위해 작업을 다했는데 에러가 발생할 경우가 있다... const mongoose = require('mongoose') mongoose.connect('mongodb+srv://cine:cine@cluster0.7sr4t.mongodb.net/myFirstDatabase', { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAnModify: false, }).then(() => console.log('MongoDB Connected...')) .catch(arr => console.log(arr)) 코드 상에 문제가 없어 보이는데 이를 실행시키면 에러가 발생한다. MongoParseEr..

    Error: Cannot find module 'webpack-cli/bin/config-yargs'

    npm start를 실행했더니 이런 에러가 발생했습니다... > npm start > wordcloudtest@1.0.0 start C:\Project_Final\wordcloudTest > set NODE_ENV=development&&webpack-dev-server internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module 'webpack-cli/bin/config-yargs' Require stack: - C:\Project_Final\wordcloudTest\node_modules\webpack-dev-server\bin\webpack-dev-server.js at Function.Module._resolveFilename..