백엔드, 기타/버그보따리, etc 4

맥북에서 Node.js를 설치하거나, npm install할 때, permission denied가 뜨는 경우 해결 방법

맥북 터미널에서 Node.js를 설치하는 도중, 혹은 npm install {package}-g 을 하는 경우, 다음과 같은 에러가 발생하는 경우가 있다. heckPermissions Missing write access to /usr/local/lib/node\_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node\_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node\_modules' npm ERR! \[Error: EACCES: permission denied, a..

mysql설치(윈도우)

node.js로 개인 프로젝트 시작! 기존에 사용하던 oracle이 무거워 몽고디비와 mysql을 선택했다. 경로 https://dev.mysql.com/ MySQL :: Developer Zone MySQL Engineering Blogs MySQL at Oracle Open World London FEB 12-13 Planning to attend Oracle Open World 2020 in London? Make sure to: Visit our booth Join us at our evening reception Check out our MySQL sessions MySQL Booth: Located in Zone 4 , stop dev.mysql.com 에 접속하여 mysql community..

PostgreSQL error: subquery in from must have an alias

subquery in from must have an alias vue.js에서 request를 통해 파라미터를 보내 아스테리아에서 미들웨어 구축을 하던 중 Postgre 데이타베이스에서 에러가 생겼다. SELECT count(*) as cnt FROM ( SELECT 1 FROM csnet.m_sample A WHERE ${input1} ) GRPUP BY ... Mysql에서 여태까지 잘 써왔던 패턴인데 Postgre에서는 다르군.. 서브쿼리를 작성할 때 뒤에 as 무엇 이런식으로 alias를 붙여야한다.

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 오류 처리

vue.js나 react등을 노드에서 로컬에서 작업할 때 서버에 리퀘스트 요청을 하면 아래와 같은 CORS 오류가 생긴다. 이를 proxy설정으로 간단히 해결 할 수 있다. 1. vue.config.js 파일의 module.exports괄호 안에 프록시 설정을 한다. 예) module.exports = { publicPath: process.env.VUE_APP_PUBLIC_PATH, devServer: { proxy: { '^/api': { target: '서버 url', ws: true, changeOrigin: true, pathRewrite: { '^/api': '' } }, } } } 2. .env.local 파일의 path를 변경한다. 예) # Public Path VUE_APP_PUBLIC_..