ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • AWS Beanstalk 배포 중에 "ReferenceError: internalBinding is not defined" 에러 발생 해결방법
    컴퓨터 공부 ver 0.1/AWS 2019. 1. 26. 16:39
    반응형

    운영 중인 Django 서버 환경

    • Django(Python) Version:  v2.1 (v3.6.3)
    • npm: 6.6.0
    • gulp-sass: 2.3.2

    NPM 패키지 중 gulp-sass install 중에 에러 발생 로그

      [Thu, 06 Dec 2018 09:40:46 +0000] INFO - Build SCSS by gulp

      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):

      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

      

      + gulp-sass@2.3.2

      updated 3 packages and audited 21003 packages in 14.91s

      found 38 vulnerabilities (5 low, 26 moderate, 7 high)

        run `npm audit fix` to fix them, or `npm audit` for details

      npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

      npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

      npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

      npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

      npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

      /.nvm/versions/node/v11.3.0/bin/gulp -> /.nvm/versions/node/v11.3.0/lib/node_modules/gulp/bin/gulp.js

      + gulp@3.9.1

      updated 1 package in 6.197s

      fs.js:25

      'use strict';

      ^

      

      ReferenceError: internalBinding is not defined

          at fs.js:25:1

          at req_ (/opt/python/bundle/43/app/node_modules/natives/index.js:137:5)

          at Object.req [as require] (/opt/python/bundle/43/app/node_modules/natives/index.js:54:10)

          at Object.<anonymous> (/opt/python/bundle/43/app/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:99)

          at Module._compile (internal/modules/cjs/loader.js:722:30)

          at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)

          at Module.load (internal/modules/cjs/loader.js:620:32)

          at tryModuleLoad (internal/modules/cjs/loader.js:560:12)

          at Function.Module._load (internal/modules/cjs/loader.js:552:3)

          at Module.require (internal/modules/cjs/loader.js:658:17)

    해결 방법

    프로젝트 내에서, npm install natives@1.1.6 패키지 추가하여, 재배포 진행


    이 에러 발생으로 SCSS를 빌드하지 못해서, 로컬에서 직접 빌드 후 배포를 했는데 이게 여간 불편한게 아니었습니다.

    패키지 설치로 쉽게 해결되어 다행이었습니다.



    위 내용이랑 무관합니다. 썸네일 넣어보고 싶어서요.

    반응형

    댓글

Designed by Tistory.