DEVELOP
article thumbnail
[์—๋Ÿฌํ•ด๊ฒฐ๐Ÿช„ ] Error: error:0308010C:digital envelope routines::unsupported : Node ๋ฒ„์ „ ๋งž์ถฐ์ฃผ๊ธฐ

์—๋Ÿฌ๋ฐœ์ƒ Error: error:0308010C:digital envelope ์—๋Ÿฌ ๋„์„œ [ ์›น ๊ฐœ๋ฐœ ์Šคํ‚ฌ์„ ํ•œ ๋‹จ๊ณ„ ๋†’์—ฌ ์ฃผ๋Š” ํ”„๋ก ํŠธ์—”๋“œ์„ฑ๋Šฅ ์ตœ์ ํ™” ๊ฐ€์ด๋“œ ] ๋ฅผ ๊ณต๋ถ€ ์ค‘์ธ๋ฐ, ์ฑ…์—์„œ ์ฃผ์–ด์ง„ ๊นƒ ๋ ˆํฌ๋ฅผ ํด๋ก  ๋ฐ›๊ณ  npm run start๋ฅผ ํ•˜์ž๋งˆ์ž ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋–ด๋‹ค. ๋”๋ณด๊ธฐ Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:68:19) at Object.createHash (node:crypto:138:10) at module.exports (/Users/choijungyoon/Desktop/webdev/FE-optimize/lecture-1/node_modules/w..

article thumbnail
[ ์—๋Ÿฌํ•ด๊ฒฐ ๐Ÿช„ ]Node.js vscode errno -2 : node_modules ํด๋” ์‚ญ์ œ

์—๋Ÿฌ errno: -2, code: 'ENOENT', syscall: 'stat', path: '~/node_modules/.cache/default-development/0.pack' ๋ฆฌ์•กํŠธ๋Š” Node.js ๊ธฐ๋ฐ˜ ํ”„๋กœ์ ํŠธ ๊ฐ‘์ž๊ธฐ ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋‚˜๋ฉด์„œ ํ”„๋ก ํŠธ ๋กœ์ปฌ์„œ๋ฒ„๊ฐ€ ์ข…๋ฃŒ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๊ฐ€๋” ๋ฐœ์ƒํ•จ ์›์ธ์€ Node.js ํ™˜๊ฒฝ์—์„œ ๊ธฐ๋Œ€๋˜๋Š” ํŒŒ์ผ์ด๋‚˜ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์—†๊ฑฐ๋‚˜ ๊ฒฝ๋กœ๊ฐ€ ์ž˜๋ชป๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• -> node_modules ํด๋” ์‚ญ์ œ $rm -rf node_modules $npm install ๋˜๋Š” $npm i

article thumbnail
[๋ผ์ฆˆ๋ฒ ๋ฆฌํŒŒ์ด4B, python] - ๋งˆ์ดํฌ ์Œ์„ฑ์ธ์‹ํ•˜๊ธฐ

์Œ์„ฑ์ธ์‹ in Raspberrypi with python SpeechRecognition ํ•„์š”ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ pip3 install SpeechRecognition ์—๋Ÿฌ1. Could not import the PyAudio C module 'pyaudio._portaudio'. AttributeError: Could not find PyAudio; check installation sudo apt-get install -y portaudio19-dev python3-pyaudio asoundrc ์„ธํŒ…ํ•˜๊ธฐ ๋‚˜์˜ ๊ฒฝ์šฐ์—๋Š” ๋งˆ์ดํฌ๋Š” card1, ์Šคํ”ผ์ปค๋Š” card2(๋ชจ๋‹ˆํ„ฐ hdmi ์‚ฌ์šฉ) $ sudo nano /usr/share/alsa/alsa.conf defaults.ctl.card 0 defaults..

article thumbnail
[React + Vite] Uncaught ReferenceError: regeneratorRuntime is not defined

ํ•ด๋‹น ์—๋Ÿฌ๋Š” ๋น„๋™๊ธฐ ํ†ต์‹ ์„ ํ•  ๋•Œ ์ฃผ๋กœ ๋‚˜ํƒ€๋‚˜๋Š” ์˜ค๋ฅ˜๋ผ๊ณ  ํ•œ๋‹ค. ๋‹ค๋ฅธ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•๋“ค์€ ์‹œ๋„ํ–ˆ๋Š”๋ฐ, ์ด๋ฒˆ ํ”„๋กœ์ ํŠธ๋Š” vite๋กœ ํ•œ ํ”„๋กœ์ ํŠธ์—ฌ์„œ babel.config.js ์„ค์ •์ด ๋จนํžˆ์ง€ ์•Š์•˜๋‹ค. ์•„๋ž˜์ฒ˜๋Ÿผ ํ•˜๋‹ˆ ํ•ด๊ฒฐ ! npm install vite-plugin-babel @vitejs/plugin-legacy // vite.config.js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import legacy from '@vitejs/plugin-legacy' import babel from 'vite-plugin-babel' // https://vitejs.dev/config/ export default define..

article thumbnail
[์—๋Ÿฌ ํ•ด๊ฒฐ] "RNCAndroidDialogPicker" was not found in the UIManager

clean ํ›„ ์žฌ๋นŒ๋“œํ•˜๋‹ˆ๊นŒ ์—๋Ÿฌ ํ•ด๊ฒฐ .. yarn add @react-native-community/picker cd android && ./gradlew clean && cd ..

article thumbnail
[JavaScript] ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ API KEY ์ˆจ๊ธฐ๊ธฐ (.gitignore)

์ด๋ฒˆ์— ์Šคํ„ฐ๋””์—์„œ ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๊ณ  ์žˆ๋Š”๋ฐ, ๋งค๋ฒˆ ๋ฆฌ์—‘ํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋‹ˆ JS๋กœ๋งŒ ํ”„๋กœ์ ํŠธ๋ฅผ ํ•˜๋Š” ๊ฒƒ์€ ์€๊ทผํžˆ ๊นŒ๋‹ค๋กญ๊ณ , JS ๊ณต๋ถ€์— ๋„์›€์ด ๋งŽ์ด ๋˜๊ณ  ์žˆ๋‹ค. (์–ผ๋งˆ๋‚˜ ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์— ์˜์กด์ ์ด์—ˆ๋Š”์ง€ ๋Š๋ผ๊ณ  ์žˆ๋‹ค.) ๋ฆฌ์—‘ํŠธ์—์„œ API KEY๊ฐ™์€ ์ •๋ณด๋ฅผ ์™ธ๋ถ€๋กœ๋ถ€ํ„ฐ ์ˆจ๊ธธ ๋•Œ์— DOTENV๋ฅผ ์‚ฌ์šฉํ–ˆ์—ˆ๋Š”๋ฐ, ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ๋Š” ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋‹ค. ๊ทธ๋ž˜์„œ config.js ํŒŒ์ผ์— API_KEY ๊ฐ’์„ ์ €์žฅํ•˜๊ณ  exportํ•œ ํ›„ ์‚ฌ์šฉํ•˜๋ ค๋Š” ๊ณณ (api.js)์—์„œ importํ•œ ํ›„ gitignore์— ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ง„ํ–‰ํ–ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์ด ์™„์ „ํžˆ ์˜ณ์€ ๋ฐฉ๋ฒ•์ธ์ง€๋Š” ์ž˜ ๋ชจ๋ฅด๊ฒ ๋‹ค. ๋‚˜์ค‘์— ๋ฐฐํฌ๋ฅผ ํ•˜๊ฒŒ ๋œ๋‹ค๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๊ฒŒ ๋  ์ˆ˜๋„ ์žˆ์„ ๊ฒƒ ๊ฐ™์€๋ฐ, ๋ฐฐํฌ ๋‹จ๊ณ„์—์„œ ํฌ์ŠคํŒ…..

article thumbnail
[css] input ํƒœ๊ทธ ์ž๋™์™„์„ฑ ์‹œ ๋ฐฐ๊ฒฝ ํŒŒ๋ž€์ƒ‰์œผ๋กœ ๋ณ€๊ฒฝ๋˜๋Š” ์ด์Šˆ ํ•ด๊ฒฐ

issue ํšŒ์›๊ฐ€์ž… ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•˜๋Š” ์ค‘์ด๋‹ค. ์ด๋ฉ”์ผ์„ ์ž‘์„ฑํ•˜๋Š” input ํƒœ๊ทธ์˜ ๋ฐฐ๊ฒฝ์„ ๊ธฐ๋ณธ๊ฐ’์„ ๊ฐ€์žฅ ์œ„ ์‚ฌ์ง„์ฒ˜๋Ÿผ ์„ค์ •ํ•ด๋†จ๋‹ค. (whitesmoke, ์•„๋ฌด๊ฒƒ๋„ ์ž…๋ ฅ์•ˆํ–ˆ์„ ๋•Œ) ๊ทธ๋ƒฅ ์ž…๋ ฅํ•˜๋ฉด ๋‘๋ฒˆ์งธ ์‚ฌ์ง„์ฒ˜๋Ÿผ ์›๋ž˜ ๋ฐฐ๊ฒฝ์ƒ‰์œผ๋กœ ๋‚˜์˜ค๋Š”๋ฐ, ์ž๋™์ž…๋ ฅ์„ ํ•˜๊ฒŒ๋˜๋ฉด ์„ธ๋ฒˆ์งธ ์‚ฌ์ง„์ฒ˜๋Ÿผ ๋ฐฐ๊ฒฝ์ด ํŒŒ๋ž€์ƒ‰์œผ๋กœ ๋‚˜์˜จ๋‹ค. issue ์›์ธ ํฌ๋กฌ๊ณผ ์ผ๋ถ€ ๋‹ค๋ฅธ ์›น ๋ธŒ๋ผ์šฐ์ €๋“ค์€ ์‚ฌ์šฉ์ž์˜ ์ž…๋ ฅ ์ด๋ ฅ์„ ๊ธฐ๋ฐ˜์œผ๋กœ input ํ•„๋“œ์— ์ž๋™์™„์„ฑ(Autocomplete)์„ ์ œ์•ˆํ•  ๋•Œ :-webkit-autofill ์Šคํƒ€์ผ์— !important๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ ์šฉํ•ด๋‘์—ˆ๊ธฐ ๋•Œ๋ฌธ์— background-color, background-image, color ๋“ฑ์˜ ์Šคํƒ€์ผ๋ง์ด ์–ด๋ ต๋‹ค. ์ด๋ ‡๊ฒŒ ์ œ์•ˆ๋œ ์ž๋™์™„์„ฑ ํ•ญ๋ชฉ์„ ์‚ฌ์šฉ์ž๊ฐ€ ์„ ํƒํ•˜๋ฉด input ํ•„๋“œ์˜ ๋ฐฐ๊ฒฝ์ƒ‰์ด ํŒŒ๋ž€์ƒ‰..