목록 전체 글 (119)
네이처리 노트
공부하면서 정리한 내용입니다 참고한 내용은 링크를 확인해주세요 Error Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency 비슷한 에러문구에 대해 문의한 내용 👉🏻보기 이해가 안됨 해결안되는거같음 Error ./bin/forever : 허가거부 / code ELIFECYCLE / errno 126 프로젝트를 로컬에서 원격 서버로 업로드했다. forever로 실행하려고 했으나 forever 허가거부 메세지 출력.. root 설치권한은 cafe24에 있었다.. (귀찮) 일단 🔗 code ELIFECYCLE 에러 해결하기 내용 따라서 그대로 적용해봄 npm cache clean --fo..
공부하면서 정리한 내용입니다 참고한 내용은 링크를 확인해주세요 📦 forever SSH 접속을 종료해도 어플리케이션이 종료되지 않고 지속적으로 서비스를 제공 설치 및 프로세스 이름부여하기 npm install forever -d //노드몬설치했던 방식으로 디렉토리에 설치했다. package.json 활용하기 { "scripts": { "nature": "node dir/index.js", "natureservice": "forever start --uid nat dir/index.js", // 실행코드 "naturestop" : "forever stop nat",// 종료코드 }, "devDependencies": { "nodemon": "^2.0.9" } } --uid [name] 은 이름을 정해주는 ..
공부하면서 정리한 내용입니다 참고한 내용은 링크를 확인해주세요 📦 nodemon 코드가 변경되었을 때 (저장되는 시점) 프로세스가 자동으로 재실행된다. 개발테스트용으로 사용 npm install -D nodemon// 설치 nodemon dir/index.js// 실행 package.json 활용하여 실행하기 { "scripts": { "nature": "node dir/index.js", "naturetest": "nodemon dir/index.js", }, "devDependencies": { "nodemon": "^2.0.9" } } nodemon naturetest//실행 Error nodemon: command not found npm i -g nodemon //글로벌설치 글로벌설치는 컴퓨터의..
공부하면서 정리한 내용입니다 참고한 내용은 링크를 확인해주세요 🔗 ES 모듈 사용하기 🔗 exports와 module.exports 비교설명 🔗 export 설명 (MDN) // export.js module.exports = 모듈_명; // 모듈 내보내기 exports.say = "hello"; // index.js const 모듈담는_변수 = require('./export.js'); // 모듈 불러오기 예시 📂Global folder // candi.js global.candy = "sweet"; 📂Export folder // export.js export const animal = "dog"; export const tree = "apple tree"; export const flower = "..