Front-End/React
npm install 할 때 No repository field error 발생
미피뿌
2021. 3. 5. 15:09
반응형
npm install 할 때 No repository field Error
이럴 경우에는
// package.json
"repository": {
"type": "git",
"url": "git://github.com/username/repository.git"
}
를 추가하거나
// package.json
{
"name": "my-app",
"version": "1.0.0",
"private": true
}
를 추가하면 정상적으로 동작한다.
위 경우 말고도 repository 를 remote 한 후, npm install 할 때마다 발생했던 에러가 있다.
warning:
CRLF will be replaced by LF in some/file.file. The file will have its original line endings in your working directory.
해당 warning 은 Mac 또는 Linux 를 쓰는 개발자와 WIndow 쓰는 개발자가 Git으로 협업할 때 발생하는 Whitespace warning 이다.
이럴 때에는
git config --global core.autocrlf true
실행해주면 가능하다. (윈도우일 경우)
전체 프로젝트에 반영할 때에는 -- global 을 추가하고, 해당 프로젝트에만 반영하고 싶은 경우에는 -- global 을 빼고 실행한다.
반응형