inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Slack 클론 코딩[실시간 채팅 with React]

코드스플리팅과 이모션

229

sam775512

작성한 질문수 3

0

1.
C:\Users\sam77\Downloads\sleact-master\alecture>npm run dev
 
> alecture@1.0.0 dev
> cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack serve --env development
 
[webpack-cli] Invalid options object. Dev Server has been initialized 
using an options object that does not match the API schema.
 - options has an unknown property 'publicPath'. These properties are 
valid:
   object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
 
 
 
 
2.
C:\Users\sam77\Downloads\sleact-master\alecture>npm i emotion/react info: please complete authentication in your browser...eaning logs, removing 2 files npm ERR! code 128 om/emotion/react.git npm ERR! git@github.com: Permission denied (publickey). om/emotion/react.git npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\sam77\AppData\Local\npm-cache\_logs\2022-03-05T07_20_43_694Z-debug-0.log 7_20_43_694Z-debug-0.log

 

이런식으로 에러가 뜨는데

그냥 진행해도 되나요?

 

3. C:\Users\sam77\Downloads\sleact-master\alecture>npm start

npm ERR! Missing script: "start"

npm ERR!

npm ERR! Did you mean one of these?

npm ERR!     npm star # Mark your favorite packages

npm ERR!     npm stars # View packages marked as favorites

npm ERR!

npm ERR! To see a list of scripts, run:

npm ERR!   npm run

 

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\sam77\AppData\Local\npm-cache\_logs\2022-03-05T07_39_21_665Z-debug-0.log

 

npm start를 했을때 안되는 이유도 궁금합니다

babel 웹팩 typescript Socket.io react 클론코딩

답변 1

0

제로초(조현영)

1. 강좌 공지사항 확인해주세요~

2 @emotion/react  입니다.

0

sam775512

C:\Users\sam77\Downloads\sleact-master\alecture>npm start

npm ERR! Missing script: "start"

npm ERR!

npm ERR! Did you mean one of these?

npm ERR!     npm star # Mark your favorite packages

npm ERR!     npm stars # View packages marked as favorites

npm ERR!

npm ERR! To see a list of scripts, run:

npm ERR!   npm run

 

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\sam77\AppData\Local\npm-cache\_logs\2022-03-05T07_39_21_665Z-debug-0.log

 

npm start를 했을때 안되는 이유도 궁금합니다

0

제로초(조현영)

package.json에 scripts 부분에 start를 안 적으신 것 같습니다.

0

sam775512

 

"scripts": { "start": "node server/index.js",

를 추가하는 거 맞나요?

로컬호스트 페이지가 잘안나와요

 

 

 

 

0

sam775512

npx create-react-app my-app cd my-app npm start

이거는 아닌거같아서요

0

제로초(조현영)

npm run dev하셔야하는거 아닌가요. 강좌에서도 npm run dev할텐데요

0

sam775512

그렇게해도
이렇게 하얀화면만 뜨네요

진짜 못하겠어요ㅠㅠ

 

 

0

제로초(조현영)

settings/ts 폴더 제 깃헙에서 복사한 후에 아무것도 건들지 말고 npm i 후에 npm run dev하시면 되는겁니다. index.html 파일을 여는게 아니라 localhost:3090으로 들어가시는 겁니다.

기본 셋팅과 관련하여

0

106

1

초기 셋팅 back과 front만 남겨두고 다 지운 후 진행 방법

0

109

2

focus 시에만 화면 업데이트 되는 이유 + 해결방법

0

164

2

useEffect 개수 관리

0

122

2

라이브러리 서치 방법

0

118

2

함수 정의 패턴

0

80

1

npm run dev 에러

0

156

3

npx webpack 후 에러

0

187

2

'void' 형식 식의 truthiness를 테스트할 수 없습니다.ts(1345)

0

151

2

사용자 가입시 에러발생 (TypeError: Cannot read properties of null (reading 'addMembers')

1

190

2

초기세팅중 packge.json 에러떠요

0

162

2

CORS - Access-Control-Allow-Origin 누락 문제

0

439

3

로그인 페이지 무한 새로고침 현상

0

608

2

Module not found: Error: Can't resolve './App' 에러

0

969

1

배포 방법

0

306

2

npm run dev 시 빌드가 매우 느려졌습니다

0

1010

2

alias 경로 설정 오류

0

460

2

fetcher 함수의 data 값이 두번 찍히는 이유

0

282

1

제네릭 질문

0

225

2

ts-node 대신 tsx 사용여부

0

377

1

배포 관련 질문

0

249

1

[nginx + https] 서비스를 실행하면 niginx가 아닌 서비스 화면을 보여주게 하고 싶습니다.

0

394

2

[배포하기] webpack에 aws 퍼블릭 IPv4 주소 와 포트 주소를 작성하고 나서 빌드후 실행하면 오류가 발생합니다.

0

341

1

users 호출 시 쿠키가 담기지 않는 이슈 질문드립니다.

0

252

2