나는 Mac에서 NodeGUI를 이동하고 싶었지만 npm 설치가 잘못되어 꼬꼬

3749 단어 Node.jsNodeGUI
이 링크를 읽고 NodeGUI를 이동해 보려고 했는데 오류가 없어져서 투고했습니다.
  • 🐕 Announcing NodeGUI and React NodeGUI - Build native desktop apps with Javascript and CSS 🎉
  • 참고 링크에 의하면 이 절차만 간단하게 샘플을 시작할 수 있다
    git clone https://github.com/nodegui/nodegui-starter
    cd nodegui-starter
    npm install
    npm run build
    npm start
    
    npm install 부분 오류
    $ npm install
    
    > @nodegui/[email protected] postinstall /Users/kengookumura/dev/tmp/nodegui/nodegui-starter/node_modules/@nodegui/qode
    > node install.js
    
    Local Qode 1.0.5 archive doesnt exists... Copying Qode from cache...
    Extracting binaries...
    
    > @nodegui/[email protected] postinstall /Users/kengookumura/dev/tmp/nodegui/nodegui-starter/node_modules/@nodegui/nodegui
    > npm run build:addon
    
    
    > @nodegui/[email protected] build:addon /Users/kengookumura/dev/tmp/nodegui/nodegui-starter/node_modules/@nodegui/nodegui
    > cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
    
    [
      '/usr/local/Cellar/node/12.8.1/bin/node',
      '/Users/kengookumura/dev/tmp/nodegui/nodegui-starter/node_modules/.bin/cmake-js',
      'compile'
    ]
    info TOOL Using Unix Makefiles generator.
    info REP Build has been failed, trying to do a full rebuild.
    ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! @nodegui/[email protected] build:addon: `cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the @nodegui/[email protected] build:addon script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm WARN Local package.json exists, but node_modules missing, did you mean to install?
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/kengookumura/.npm/_logs/2019-09-23T06_00_56_266Z-debug.log
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! @nodegui/[email protected] postinstall: `npm run build:addon`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the @nodegui/[email protected] postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/kengookumura/.npm/_logs/2019-09-23T06_00_56_858Z-debug.log
    
    내용은 오류를 보면 CMake의 실행 파일을 찾을 수 없기 때문에 구글을 시도해 봤는데 아래와 관련이 있는 것 같아서 m(__)m
    C++ 초보자가 Mac에서 CMake-Qiita 사용 시도
    $ brew install cmake
    
    현재 운행 npm install, 순조롭게 완료
    그리고 여기를 수행하면...
    npm run build
    npm start
    
    nodegui-starter 샘플 프로그램을 시작했습니다.

    버전
  • macOS Mojave 10.14.6
  • node 12.8.1
  • 여기서 마치겠습니다.미안합니다.m(_ _)m

    좋은 웹페이지 즐겨찾기