본문 바로가기
반응형

NPM3

yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 에러 해결 yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\user\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참조하십시오.위치 줄:1 문자:1 Windows PowerShell을 관리자 권한으로 실행 get-help Set-ExecutionPolicy y 입력 Set-ExecutionPolicy RemoteSigned y 입력 권한을 설정해주고 다시 yarn명령어 사용하면 해결된걸 확인할 수 있다 2022. 6. 16.
node_modules/@types/express/index.d.ts:58:29 에러 해결 npm 사용 시 npm update @types/express-serve-static-core --depth 2 npm update @types/serve-static --depth 2 yarn 사용 시 yarn add @types/express@4.17.8 yarn 명령어 사용 시에는 package-lock.json파일에 @types/express 버전이 바뀌는것을 확인 2022. 6. 16.
npm yarn 명령어 차이 npm은 Node.js 설치될 때 같이 설치되지만 yarn은 별도로 설치해줘야 한다 npm install -g yarn 패키지 생성 : npm init - yarn init 패키지 업로드 : npm publish - yarn publish 패키지 설치 : npm install [패키지명] - yarn add [패키지명] 패키지 삭제 : npm uninstall [패키지명] - yarn remove [패키지명] 패키지 업그레이드 : npm update [패키지명] -yarn upgrade [패키지명] 패키지 정보 조회 : npm info [패키지명] - yarn info [패키지명] 현재 패키지의 dependencies 조회 : npm list - yarn list 2022. 3. 3.
반응형