본문 바로가기
TIL

[React Native] Problems loading reference 'https://json.schemastore.org/package': Unable to load schema from 'https://json.schemastore.org/package': getaddrinfo ENOTFOUND json.schemastore.org.

by 사탕공방 2023. 1. 28.

리액트 네이티브 프로젝트 생성부터 문제가 있더니...

생성 후 vs code로 해당 프로젝트를 실행하여 package.json을 확인하자마자

제목과 같은 에러가 발생했다.

https://github.com/microsoft/vscode/issues/138459

 

Cannot find schema for package.json · Issue #138459 · microsoft/vscode

Issue Type: Bug Last time I edited package.json and updated project packages has been November 28. Today started showing the following problem when I edit a project's package.json file: Problem...

github.com

위의 글을 참조하여 vs code를 재시작하니 해당 문제는 해결되었다.


그런데 갑자기 String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$". 에러가 발생한다...

혹시나 싶어서 vs code를 다시 재시작 해보았지만 여전히 발생...

https://maybe-b50.tistory.com/87

 

[Error] String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".

package.json 작성 중 나타난 에러 String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$". name 에 들어간 대문자때문에 생긴 에러였다. name 작성 할 때 대문자 그리고 띄어쓰기가

maybe-b50.tistory.com

위 글을 참조하여 name을 소문자 + 케밥 케이스로 변경 후 해결 :)

대문자 제거띄어쓰기는 하이픈으로 :) ! 기억하자.

댓글