#yarn

질문 6
해시태그 없이 키워드만 일치하는 질문은 개수에 포함되지 않아요.

6달 전 · 노원재 님의 답변 업데이트

ReactNative ios build 에러 3일째 해결을 못했습니다.

시뮬레이션을 실행하려고 해도 스크립트 문제, iPhone 버전 범위 문제, 시뮬레이터 문제가 계속 발생합니다. 어떤 도움이라도 감사합니다. ReactNative를 처음 접했습니다. 저희 팀에서 저를 도울 수 있는 사람이 없습니다. #프로젝트 환경 mac M2 ruby -v ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23] node -v v20.10.0 pod --version 1.15.2 package.json { "name": "labts", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@react-native-community/async-storage": "^1.12.1", "@react-native-community/cli": "13.6.9", "@react-navigation/bottom-tabs": "^6.6.0", "@react-navigation/native": "^6.1.17", "@react-navigation/native-stack": "^6.10.0", "@tanstack/react-query": "^5.51.5", "@types/react-native-vector-icons": "^6.4.18", "axios": "^1.7.2", "date-fns": "^3.6.0", "immer": "^10.1.1", "react": "18.2.0", "react-native": "0.74.3", "react-native-calendars": "^1.1305.0", "react-native-date-picker": "^5.0.4", "react-native-dotenv": "^3.4.11", "react-native-get-random-values": "^1.11.0", "react-native-image-crop-picker": "^0.41.2", "react-native-image-zoom-viewer": "^3.0.1", "react-native-paper": "^5.12.3", "react-native-permissions": "^4.1.5", "react-native-safe-area-context": "^4.10.8", "react-native-screens": "^3.32.0", "react-native-splash-screen": "^3.3.0", "react-native-tab-view": "^3.5.2", "react-native-vector-icons": "^10.1.0", "react-native-vision-camera": "^4.5.1", "uuid": "^10.0.0", "yarn": "^1.22.22" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.74.85", "@react-native/eslint-config": "0.74.85", "@react-native/metro-config": "0.74.85", "@react-native/typescript-config": "0.74.85", "@types/react": "^18.2.6", "@types/react-native-dotenv": "^0.2.2", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "babel-plugin-module-resolver": "^5.0.2", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" } } PodFile require Pod::Executable.execute_command('node', ['-p', 'require.resolve( "react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )', __dir__]).strip platform :ios, '12.0' use_frameworks! #use_modular_headers! prepare_react_native_project! linkage = ENV['USE_FRAMEWORKS'] if linkage != nil Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green use_frameworks! :linkage => linkage.to_sym end target 'nexlabts' do config = use_native_modules! use_react_native!( :path => config[:reactNativePath], # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." ) target 'nexlabtsTests' do inherit! :complete # Pods for testing end post_install do |installer| # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 react_native_post_install( installer, config[:reactNativePath], :mac_catalyst_enabled => false, # :ccache_enabled => true ) end end 제가 아래 에러 3가지에 대해 제가 해본 방법들입니다. 1. node 재설치 node_module 폴더 삭제, package-rock.json 삭제 후 재설치 npm install --legacy-peer-deps yarn install 2. Xcode가 node 읽을 수 있도록 설정 sudo ln -s "$(which node)" /usr/local/bin/node 3. Podfile 내 platform 설정 수정 platform :ios, '12.0' or platform :ios, '14.0' 4. Pods 재설치 rm -rf ~/Library/Developer/Xcode/DerivedData or rm -rf ~/Library/Developer/Xcode/DerivedData/* rm -rf Pods rm Podfile.lock pod install --repo-update Xcode \> Product \> Clean Build Folder. cd ./ios pod cache clean -all pod install --repo-update cd ../ npx react-native run-ios --no-packager --simulator="iPhone 15" or npx react-native run-ios --simulator="iPhone 15" or yarn start > i(run ios) Err 1. cocoaPods 설치할 때 [!] CocoaPods could not find compatible versions for pod "React-RuntimeHermes": In Podfile: React-RuntimeHermes (from ../node_modules/react-native/ReactCommon/react/runtime) Specs satisfying the React-RuntimeHermes (from ../node_modules/react-native/ReactCommon/react/runtime) dependency were found, but they required a higher minimum deployment target. Err2. iOS 실행할때 run-ios --no-packager --simulator="iPhone 15" Build description signature: fc1341421f84b87c5245d346c2c17b66 Build description path: /Users/nowonjae/Library/Developer/Xcode/DerivedData/nexlabts-argvodqcybjfcybstpulfpghnzvm/Build/Intermediates.noindex/XCBuildData/fc1341421f84b87c5245d346c2c17b66.xcbuilddata /Users/nowonjae/Desktop/project/NeXLabRN/ios/nexlabts.xcodeproj:1:1: error: Unable to open base configuration reference file '/Users/nowonjae/Desktop/project/NeXLabRN/ios/Pods/Target Support Files/Pods-nexlabts/Pods-nexlabts.release.xcconfig'. (in target 'nexlabts' from project 'nexlabts') warning: Unable to read contents of XCFileList '/Target Support Files/Pods-nexlabts/Pods-nexlabts-resources-Release-output-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') warning: Unable to read contents of XCFileList '/Target Support Files/Pods-nexlabts/Pods-nexlabts-frameworks-Release-output-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') error: Unable to load contents of file list: '/Target Support Files/Pods-nexlabts/Pods-nexlabts-frameworks-Release-input-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') error: Unable to load contents of file list: '/Target Support Files/Pods-nexlabts/Pods-nexlabts-frameworks-Release-output-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'nexlabts' from project 'nexlabts') warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'nexlabts' from project 'nexlabts') error: Unable to load contents of file list: '/Target Support Files/Pods-nexlabts/Pods-nexlabts-resources-Release-input-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') error: Unable to load contents of file list: '/Target Support Files/Pods-nexlabts/Pods-nexlabts-resources-Release-output-files.xcfilelist' (in target 'nexlabts' from project 'nexlabts') warning: Run script build phase '[CP] Copy Pods Resources' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'nexlabts' from project 'nexlabts') --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, id:B5AA2E84-4F83-4749-A986-A1FCE5E398A3, OS:17.5, name:iPhone 15 } { platform:iOS Simulator, id:B5AA2E84-4F83-4749-A986-A1FCE5E398A3, OS:17.5, name:iPhone 15 } ** BUILD FAILED ** ] Err3. Xcode 로 Build 할때 (Any iOS Simulator Device (arm64, x86_64)) Command PhaseScriptExecution failed with a nonzero exit code

개발자

#reactnative

#xcode

#reactnative-run-ios

답변 1

댓글 0

조회 428

9달 전 · 익명 님의 질문 업데이트

@nestjs/cli로 설치한 프로젝트는 yarn berry설정이되어있나요?

안녕하세요, 제목그대로 @nestjs/cli 로 설치한 프로젝트는 yarn berry 설정이 되어있는건가요? yarn로 선택하여, 보일러플레이트를 다운받아왔고 yarn install 해줬는데 사진처럼 구조가 되었습니다. ( 사진을 클릭하시면 .yarn 폴더도 생성되어있는걸 확인하실수 있습니다.) 그러면 yarn berry 설정이 되어있는걸까요? yarn set version berry 를 입력해주지않아도되는건가요? 1. yarn berry 설정이 되어있으니 yarn set version berry를 안해줘도 된다. 1-1. 그러면 pnp (제로인스톨)옵션이 적용되어있는건가요? 2. .yarnrc.yml파일이 없으니 적용이안되어있는거다. yarn set version berry를 해줘야한다. 2-1 .yarnrc.yml에 nodeLinker: pnp 를 적어서 pnp 옵션도 제대로 적용시켜줘야한다. 혹시 1번과 2번중 어떤게 맞는걸까요? 혹시 2번이라면 @nestjs/cli로 설치한 프로젝트는 yarn install해줘도 node_modules 폴더가 생성되지않고 .yarn 폴더안에unplugged 폴더가 설치되어있고 여기에@nestjs-core나 prettier 폴더들이 되어있는데.. 이거는 왜 그런건지 알고싶습니다

개발자

#yarn-berry

답변 0

댓글 0

조회 55

10달 전 · 정창록 님의 질문

Next.js 에서 fluent-ffmpeg 사용 시 에러 해결 가능할까요?

Next.js 에서 puppeteer를 사용해서 특정 url에 접속하여 애니메이션을 png로 100장 정도 캡처하여 생성하고, fluent-ffmpeg를 사용해서 해당 png 이미지들을 mp4 영상으로 만들려고 하는데요. yarn add puppeteer fluent-ffmpeg @ffmpeg-installer/ffmpeg yarn add --dev @types/fluent-ffmpeg 위와 같이 라이브러리들을 설치했구요. 아래 page.tsx 파일에서 코드를 구현했는데요. dev로 실행해서 해당 페이지에 접속을 하면 아래와 같은 에러가 발생하는데요. 해결이 가능할까요?? 다른 라이브러리를 써야할지 구현한 코드가 문제가 있는지 모르겠네요. 도움 부탁드립니다!! # 에러 코드 # 1 of 1 error Next.js (14.2.3) Server Error Error: Cannot find module '/Users/.../animation-capture/node_modules/@ffmpeg-installer/darwin-arm64/package.json' This error happened while generating the page. Any console logs will be displayed in the terminal window. Call Stack webpackEmptyContext file:///Users/.../animation-capture/.next/server/app/capture/page.js (22:10) eval node_modules/@ffmpeg-installer/ffmpeg/index.js (40:27) (rsc)/./node_modules/@ffmpeg-installer/ffmpeg/index.js file:///Users/.../animation-capture/.next/server/vendor-chunks/@ffmpeg-installer.js (20:1) Next.js eval /./src/app/capture/page.tsx (rsc)/./src/app/capture/page.tsx file:///Users/.../animation-capture/.next/server/app/capture/page.js (286:1) Next.js # 코드 구현부 # import { NextApiRequest, NextApiResponse } from 'next'; import puppeteer from 'puppeteer'; import fs from 'fs'; import path from 'path'; import ffmpeg from 'fluent-ffmpeg'; import ffmpegInstaller from '@ffmpeg-installer/ffmpeg'; ffmpeg.setFfmpegPath(ffmpegInstaller.path); .... 중략.... const outputFilePath = path.resolve("./screenshots/video.mp4"); ffmpeg() .addInput(`${folderPath}/screenshot-%d.png`) .inputFPS(10) .output(outputFilePath) .on("end", () => { res.status(200).send(`Video created successfully at ${outputFilePath}`); }) .on("error", (err) => { console.error("Error generating video:", err); res.status(500).send("Failed to generate video"); }) .run(); } catch (error) { console.error("Error capturing screenshots:", error); res.status(500).send("Failed to capture screenshots"); }

개발자

#next.js

#fluent-ffmpeg

#mp4

답변 0

댓글 0

조회 85

일 년 전 · 강병진 님의 새로운 답변

패키지 잠금 파일 관련 질문이 있습니다

package-lock.json, yarn-lock.json의 경우 merge를 할때 conflict가 나면 어떻게 해야 할까요? 그냥 삭제하면 안된다고 들은 것 같아서 일일이 수정을 해주었는데 생각보다 시간이 오래걸려서 좋은 해결방법이 있다면 알고 싶습니다!!

개발자

#패키지잠금파일

답변 1

댓글 0

조회 260

일 년 전 · 민우 님의 질문

터보레포 ESLint 시스템에 대한 질문

https://stackoverflow.com/questions/74446466/need-help-setting-up-eslint-in-a-monorepo-using-yarn-3-and-typescript?rq=2 터보레포 ESLint에서는 위 링크에 걸려있는 것처럼 eslint-config에 종속성들을 다른 작업공간에서 install 하지 않고, 사용하는 것 같은데 터보레포는 ESLint의 새로운 Config 시스템인 Flat config를 사용하고 있지 않는데 어떻게 가능한 걸까요?

개발자

#turborepo

#eslint

#flat

#config

답변 0

댓글 0

조회 84

일 년 전 · 휘인 님의 새로운 답변

next.js 12version setting (npx create-next-app@12 my-next-app) 12버전이 설치되지 않는 이유

현재 회사에서 사용하는 next.js 12버전으로 기술 학습을 하려합니다. 그러나 아래와 같은 에러가 계속 발생하는데요, error next@14.0.4: The engine "node" is incompatible with this module. Expected version ">=18.17.0". Got "16.14.2" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. 12버전으로 설치하려는데 자꾸 14버전이 설치가 되면서 node version 에러가 뜨고 있습니다.. 저는 node 16.14.2를 사용중이며, 사측도 동일하게 해당 버전을 사용중입니다. 초기 세팅과정에서 next.js 12버전으로 세팅이 안된다고 판단하고, next.js 12로 다운그레이드 하려면 14버전으로 설치 후에, 다운그레이드를 시도해보았으나 "Detected next.config.js, no exported configuration found" 터미널에 해당 에러가 발생되었습니다. 제가 너무 답답한 부분을 요약하겠습니다. 1. next.js 12버전 초기 세팅이 안된다고 판단. 이후 next.js 최신 14버전 설치 ➡️ 실행하면 잘 작동함. 2. 최신 14버전에서 12버전으로 버전을 낮추고 실행하면 next.config.js에서 문제가 발생함 혹시 최근에 next.js 12버전으로 초기세팅 되신 분이 계실까요..😢

개발자

#next.js

#next.js-12

답변 1

댓글 0

조회 142

일 년 전 · 강병진 님의 새로운 답변

react 모노레포 배포는 어떻게 하나요?

안녕하게요 ! 이번에 yarn berry + workspace를 사용해서 react 프로젝트를 만들어 배포할 일이 생겼습니다 ! 최소 2개 이상의 react 프로젝트가 들어갈 계획인데... 모노레포 배포는 처음이라 어떻게 해야할지 막막하네요😂 aws를 사용해야해서 루트에서 docker로 배포하는 방향이 맞는지... (현재 사내에서 다른 프로젝트는 ECS에 배포중) 아니면 정적 웹 호스팅으로 S3에 각 버킷을 생성해서 배포하는 방향이 맞는지... (이때는 각 react 프로젝트 1개당 1버킷이 맞는걸까요? dev 서버도 만들면 각 2버킷씩인지...🥲) 혹시 보통의 프론트엔드 모노레포 구조에선 어떻게 배포하는지도 알려주시면 감사하겠습니다 :) 좋은 하루 보내세요 !

개발자

#react

#monorepo

#yarn

답변 1

댓글 0

추천해요 1

조회 552

일 년 전 · 익명 님의 질문

react-native xcode build시 발생 에러

``` ld: warning: ignoring file '/Users/heejinroh/Library/Developer/Xcode/DerivedData/OkCeo-abydistjrfwgsufmyimbpydzjpqj/Build/Products/Debug-iphonesimulator/Flipper-Folly/libFlipper-Folly.a[3](Assume.o)': found architecture 'arm64', required architecture 'x86_64' ld: warning: ignoring file '/Users/heejinroh/Library/Developer/Xcode/DerivedData/OkCeo-abydistjrfwgsufmyimbpydzjpqj/Build/Products/Debug-iphonesimulator/Flipper-Folly/libFlipper-Folly.a[2](Addr2Line.o)': found architecture 'arm64', required architecture 'x86_64' ld: Undefined symbols: _OBJC_CLASS_$_RCTBridge, referenced from: in AppDelegate.o _OBJC_CLASS_$_RCTBundleURLProvider, referenced from: in AppDelegate.o _OBJC_CLASS_$_RNKakaoLogins, referenced from: in AppDelegate.o _RCTAppSetupDefaultRootView, referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o _RCTAppSetupPrepareApp, referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` xcode 14 버전으로 생성된 프로젝트를 xcode 15버전으로 진행하여 실행했는데 빌드단계에서 에러가 계속 발생해서 혹시 도움좀 주실수있을까요? System: OS: macOS 14.0 CPU: (12) arm64 Apple M2 Pro Memory: 647.83 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.1/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm Watchman: 2023.09.25.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /Users/heejinroh/.rvm/gems/ruby-3.2.1/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.8 => 0.70.8 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found

개발자

#react-native

#xcode

#build

답변 0

댓글 0

조회 309

일 년 전 · 훈쓰 님의 질문 업데이트

nest.js 빌드시에 static파일을 dist에 포함시키는법... ㅜㅜ

안녕하세요 ! nest.js를 통해서 nodemailer와 handlebars를 이용해서 이메일 템플릿으로 메일 발송을 작업하고있습니다 ! yarn start:dev 로 실행하면 dist에는 작성한 템플릿파일이 생성되지않아 메일이 발송을 할 수 없는 상황입니다... (직접 파일을 dist폴더에 복붙하면 발송가능..) static파일의 경우 어떻게하면 build혹은 start시에 dist폴더에 포함시킬수있는지 답변주시면 감사하겠습니다 !!!! 현재 static파일의 경로는 /src/config/email-templates 에 위치하고있습니다 ! (똑같이 /dist/config/email-templates 에 위치시키고싶음....) 또한 package.json에 복사 스크립트를 넣어서 nest build && npm run copy 혹은 nest start && npm run copy 이런식으로 실행해도 yarn build때만 실행되고 start에서는 복사가 되지않습니다 ㅜㅜ

개발자

#nest.js

답변 0

댓글 0

조회 265

2년 전 · 장성호 님의 답변 업데이트

Nginx만으로 React 서비스 배포 자동화 가능할까요?

React로 만들어진 서비스를 Nginx에 배포하고 있습니다 ! yarn build하고 빌드파일들을 SFTP로 서버에 접속해서 파일을 업로드하고 배포하는게 너무 귀찮은데...github actions를 통해서 자동화 할 수 있는 방법이 있을까요? ssh로 구축한 글을 본 것 같긴한데 자세히 알고 계신 분 있나요...? AWS는 계획이 없고..docker나 가상머신이 필요할까요..ㅠㅠ

개발자

#react

#nginx

#프론트엔드

#배포

#cicd

답변 1

댓글 0

조회 179

2년 전 · 오승우 님의 새로운 댓글

리액트 컴포넌트 라이브러리 구현 시 에러

React 스타일 컴포넌트 라이브러리를 제작중입니다. Ts / rollup / yarn berry를 사용했으며 @emotion/styled를 사용해서 기본적인 스타일링을해서 사용했을 땐 별 문제 없이 의존성 설치도 되고 사용에 이상이 없었으나 React key값 관리와 차트 사용을 위해 차트 "apexcharts": "^3.42.0", "react-apexcharts": "^1.4.1", key 값 "shortid"를 사용하니까 의존성을 받아 사용하던 프로젝트에서 에러가 발생했습니다 "Uncaught SyntaxError: The requested module '/node_modules/react-apexcharts/dist/react-apexcharts.min.js?v=73045f40' does not provide an export named 'default' " 직접 제작한 라이브러리에서 외부 라이브러리를 사용하려면 혹시 다른 방법이 필요한걸까요..??

개발자

#react

#module

#library

#component

답변 1

댓글 1

조회 135

2년 전 · 익명 님의 질문

Vercel 빌드 배포 궁금한 점

기존에는 앰플리파이로 배포했던 프로젝트를 vercel로 배포하려고 설정을 하는 와중에 문제가 생겨 질문을 남깁니다. 번들링 되는 패키지들 중 프라이빗 패키지를 깃허브에서 ssh형식으로 받아와야해서 amplify.yml prebuild 부분에서 ssh-gent에 키를 등록하고 yarn install을 실행하고 빌드하는 방식으로 진행했는데 Vercel에서 프로덕션으로 디플로이를 하려고 하니 해당 패키지에서 키를 세팅해주지 않아서 인지 에러가 나면서 yarn install가 실패합니다. 공식문서에서는 깃허브 토큼 방식으로 적용하면 된다고 써져있어서 시도를 해봤는데 역시 실패하더라구요 깃헙에 올라가있는 프라이빗 패키지를 사용 할 수 있는 방법이 있을까요? 환경은 nextJS + typescript + yarn 입니다.

개발자

#vercel

#next.js

#yarn

답변 0

댓글 0

조회 143

2년 전 · 달레 님의 답변 업데이트

git clone 후 에러

Git 소스 클론 후 yarn install 진행 ‘yarn dev’ 실행 시 ‘ APP_ENV’은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 라고 하고 에러가 납니다. error Command failed with exit code 1. Info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 환경변수 문제인듯한데 어떻게 해결해야하나요?

개발자

#환경변수

#yarn-dev

답변 1

댓글 0

추천해요 2

보충이 필요해요 1

조회 159

2년 전 · 커리어리 AI 봇 님의 새로운 답변

모노레포 도입 고민

안녕하세요 현재 리엑트로 pwa게발중인 대학생입니다. 이번 프로젝트에서 두개의 앱을 만들어야 하는데 현재에는 멀티레포방식으로 레포지토리 두개를 파서 개발중입니다. 근데 개발하다보니 두개 앱의 패키지가 아예 똑같고 공통되는 ui가 좀 많아서 모노레포로 바꾸는걸 고민중인데 모노레포 도입시에 고려할 점과. yarn workspace, turborepo 등등 여러가지 있는것으로 아는데 어떤걸 사용하는게 좋을지 추천부탁드리니다!

개발자

#react

#frontend

답변 2

댓글 1

조회 447

2년 전 · 커리어리 AI 봇 님의 새로운 답변

Ubuntu에 Next.js pm2 배포

안녕하세요. 이번에 Ubuntu에 Next.js로 된 프로젝트를 배포하는 일을 맡았습니다. 그래서 pm2를 이용하여 배포를 할려고 하는 데 인스턴스 내부에서 아래의 과정을 거치다보니 메모리 부족으로 인스턴스 다운 현상이 자주 일어나는 데 해결 방안이 있을까요? 1. git clone 2. yarn 3. yarn build 4. pm2 start yarn -w -i 0 --name "next" -- start

개발자

#next

#ubuntu

#pm2

#배포

#포

답변 3

댓글 0

조회 642

2년 전 · 커리어리 AI 봇 님의 새로운 답변

2023 npm vs yarn vs pnpm

2023 새로운 프로젝트를 시작한다면 어떤 패키지 매니져를 추천 (혹은 선호) 하시나요 ? 어떤 패키지 매니저를 선택하는게 좋을지 갑자기 고민 되네요. npm 의 단점을 보완하기 위해 yarn 과 pnpm 이 나왔고, 처음에는 여러가지 문제가 있었지만 지금은 npm 도 많이 발전 해서 큰 차이는 없다고 알고있는데 맞을까요 ? 큰 차이가 없다면 어떤걸 더 선호하는지도 궁금합니다.

개발자

#npm

#yarn

#pnpm

답변 2

댓글 1

조회 566

2년 전 · 커리어리 AI 봇 님의 새로운 답변

AWS Amplify에서 PnP를 지원하지 않나요?

안녕하세요~ 회사에서 진행중인 Next.js 프로젝트가 serverless framework를 사용하고 있어서 Next 13으로 업그레이드가 안되던 문제를 Amplify를 도입하여 해결하였습니다. 내친 김에 Yarn Berry의 Plug’n’Play까지 도입해봤는데요, 문제는 이 경우에 Amplify의 빌드에 실패합니다. 결과적으로는 배포가 안돼서.. 결국 Plug’n’Play를 못쓰게 되었어요. ChatGPT에게 물어보니 AWS Amplify가 현재 PnP를 지원하지 않는다는데.. 정확성이 부족하다고 판단되고 관련된 GitHub Issue도 명확하게 답변이 나오지는 않은 것 같아서요. 혹시 저처럼 Next.js 13 + PnP를 사용한 프로젝트를 AWS Amplify에 배포해보신 분이 계실지, 아니라면 해당 프로젝트를 성공적으로 배포하신 케이스는 어떤 걸 사용한 케이스인지 알고싶습니다!

개발자

#amplify

#pnp

#next.js

#react

답변 1

댓글 0

조회 329

2년 전 · 김진건 님의 새로운 댓글

yarn workspace yarn berry오류입니다

프로젝트 세팅 단계인데 이 오류를 해결하는 방법이 궁금합니다

개발자

#react

#yarn

#yarn-berry

#yarn-workspace

답변 1

댓글 1

조회 131

2년 전 · 커리어리 AI 봇 님의 새로운 답변

Nvm으로 node 버전 관리시, Yarn global module 질문입니다.

현재 nvm으로 노드 버전을 두 개 관리하고 있습니다. 각 버전의 npm을 통해 글로벌으로 yarn을 인스톨한 상태이구요. 그런데 노드 버전을 바꾸어도 원래 버전의 yarn global module들이 잡히는 상황입니다.. 새로운 노드버전을 받고 npm으로 yarn을 받아도 다른 버전의 yarn module이 잡히는게 정상인가요..?

개발자

#node.js

#nvm

#yarn

#npm

답변 1

댓글 0

조회 159

2년 전 · ! 정다송 님의 새로운 답변

yarn 과 npm 질문입니다

안녕하세요 현재 취준생입니다 리액트를 다시 공부중에 yarn 과 npm 이 있어서요 하지만 듣는 강의는 yarn 을 사용 중인데 yarn 과 npm 심각하게 차이가 있을까요 ?? 저는 npm이 너무 편해서.. 여쭤봅니다

개발자

#npm

#yarn

답변 2

댓글 0

조회 173

2년 전 · 커리어리 Q&A 운영자 님의 새로운 댓글

react-native 모듈 에러

react-native 모듈이 있는데 제대로 된 버전이 인식이 안되는 에러 경험해보신분 있나요? axios 버전 0.21.6을 설치했는데 자꾸 시뮬레이터에서 axios가 없다는 런타임 에러가 떠서요. 혹시 해결해보신 분 계시면 답글 남겨주세요 감사합니다. 제가 시도해본 것: node_modules 폴더 삭제 ios/Pods 폴더 삭제 yarn install, npx pod-install 시뮬레이터 실행 yarn list를 실행해보면 정상적인 버전이 설치된 것 같습니다.

개발자

#react-native

답변 1

댓글 1

추천해요 2

조회 104