개발 일지

  • 홈
  • 태그
  • 방명록

node 2

[NodeJS] FCM 메세지 보내기 서버 사이드 (firebase-admin, server side)

firebase-amin 라이브러리를 이용하여fcm 메세지를 보내는 api 를 만들어보자.const express = require('express');const path = require('path');const bodyParser = require('body-parser');const admin = require('firebase-admin');// Firebase Admin SDK 초기화const serviceAccount = require('./serviceAccountKey.json'); // Firebase 서비스 계정 JSON 파일admin.initializeApp({ credential: admin.credential.cert(serviceAccount), });exports.se..

NodeJS 2024.09.06

[Node] 'process.env' only accepts a configurable, writable, and enumerable data descriptor

아래의 모듈을 받는데 문제가 발생.npm install --global --production windows-build-tools 'process.env' only accepts a configurable, writable, and enumerable data descriptor라는 에러가 발생했다.'process.env' only accepts a configurable, writable, and enumerable data descriptor 실행에서%temp% 를 입력하여 해당폴더에 txt 파일을 생성해준다. 이름은 dd_client_.log.txt 내용은Closing installer. Return code: 3010. 저장 한 후 node version 17.9.1 으로 설치 후 다시 모듈을 설..

NodeJS 2024.09.03
이전
1
다음
더보기

Copyright © Kakao Corp. All rights reserved.

티스토리툴바