Backend/패키지매니저 3

Backend/패키지매니저
yarn berry eslint 에러

프로젝트에 eslint를 설정해 놓고, fix해주는 코드를 package.json에 작성해놨다. 그 후 터미널에서 fix해주는 명령어를 입력했는데 아래 이미지와 같은 에러가 났다 Oops! Something went wrong! :( ESLint: 8.56.0 Error: synckit tried to access ", but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. Required package: " (via ""/var/folders/1v/r80_zlpj7f507kxk80jycc0c0000gn/T/6025ddaa198df01ef650d59d6f3f5c98.cjs"") Required..

Backend/패키지매니저
라이브러리 버전관리와 설치

라이브러리는 기본적으로 1.0.0 부터 시작 버전 업데이트 하는 방식에 대한 설명은 공식문서를 확인해 보자 About semantic versioning | npm Docs Documentation for the npm registry, website, and command-line interface docs.npmjs.com 테스트 해볼 수 있는 사이트도 있다. 애매하면 테스트 사이트가서 테스트해보자! npm semantic version calculator Use the caret (aka hat) symbol, ^ Examples ^2.2.1 ^0.1.0 ^0.0.3 Note: caret behavior is different for 0.x versions, for which it will only..

Backend/패키지매니저
npm 명령어와 셋팅하기 (+라이선스)

npm 명령어 공식문서 CLI Commands | npm Docs Documentation for the npm registry, website, and command-line interface docs.npmjs.com npm 셋팅하기 // package.json 일일히 먼저 설정 npm init // 한번에 package.json 만들기 npm init --yes npm init --yes으로 빠르게 package.json파일을 생성 후, json파일을 직접 수정하는게 더 편한 것 같다. npm script 작성하기 script 부분에 명령어를 작성할 수 있다. 내가 지정한 명령어일 경우 실행할 때는 run 키워드를 꼭 같이 사용해야한다. // start는 원래 있는 명령어라서 run 필요없음 npm..