[TIL]21.08.22

박주홍·2021λ…„ 8μ›” 22일
0

Today I Learned

λͺ©λ‘ 보기
56/104

πŸ‘¨β€πŸ’»μ˜€λŠ˜ κ³΅λΆ€ν•œ 것

  • 쒋은 κΈ°νšŒκ°€ μƒκ²¨μ„œ react-native μ½”λ“œλ₯Ό html(ejs)둜 λ¦¬νŒ©ν† λ§ν•˜λŠ” 것과 μ›ΉνŽ˜μ΄μ§€λ₯Ό 눈으둜 ν΄λ‘ ν•΄μ„œ λ””μžμΈ λ˜‘κ°™μ΄ μ½”λ”©ν•΄μ•Όν•˜λŠ” 일이 생겼닀.

    react-nativeλŠ” react와 λ‹€λ₯΄κ²Œ package.jsonμ—μ„œ script속성에 μ •μ˜λœ λͺ…λ Ήμ–΄λ₯Ό 쳐도 react-nativeλ₯Ό μ‹€ν–‰ν•  κΈ°κΈ°(runtimeν•  κΈ°κΈ°)κ°€ ν•„μš”ν•˜λ‹€ν•΄μ„œ Expo둜 κΈ°κΈ°κ°€ ν•„μš”μ—†μ΄ μ“Έλ €κ³  보닀가 κ΅¬ν˜„λœ μ½”λ“œλ₯Ό μ„£λΆ€λ₯΄κ²Œ λ§Œμ§€λ©΄ μ•ˆλ  것 κ°™μ•„μ„œ, μ•ˆλ“œλ‘œμ΄λ“œ μŠ€νŠœλ””μ˜€μ—μ„œ npm run startλ₯Ό ν•΄λ³΄κΈ°λ‘œ ν–ˆλ‹€.
  • κ·Έ κ³Όμ •μ—μ„œ

  • Did you pop install?
    : λΌλŠ” 였λ₯˜λ₯Ό λ§Œλ‚˜μ„œ λŒ€μ²˜ν–ˆλ˜ μˆœμ„œλŠ” λ‹€μŒκ³Ό κ°™λ‹€.
    1. brew install cocoapods
    2. pop init
    3. pop install

  • listen EADDRINUSE: address already in use :::8081.
    : λΌλŠ” 였λ₯˜λ₯Ό λ§Œλ‚˜μ„œ λŒ€μ²˜ν–ˆλ˜ μˆœμ„œλŠ” λ‹€μŒκ³Ό κ°™λ‹€
    1. sudo lsof -i :8081
    2. kill -9 <포트λ₯Ό μ“°λŠ” 것>
    ex) kill -9 33689




  • 내일은 μ•ˆλ“œλ‘œμ΄λ“œ μŠ€νŠœλ””μ˜€μ—μ„œ λ¦¬μ•‘νŠΈ λ„€μ΄ν‹°λΈŒλ₯Ό 싀행해보고 ejs문법을 곡뢀해봐야겠닀.
    profile
    κ³ ν†΅μ—†λŠ” μ„±μž₯은 μ—†λ‹€κ³  ν•  수 μžˆκ² λ‹€....

    0개의 λŒ“κΈ€