2016-08-25 2 views
1

MobileFirst Platform 8.0 개발을 위해 OS X 시스템을 오프라인으로 설정하려고합니다 (인터넷 액세스 권한 없음). MobileFirst CLI를 설치하지 못했습니다.
저는 this article을 말합니다.
8.0.0.0-MFPF-DevKit-MacOSX-IF2016080923.zip을 오프라인 컴퓨터에 설치 한 다음 run.shconsole.sh을 설치했습니다.
개발 서버가 성공적으로 시작되었으므로 Operations Console에 액세스 할 수 있습니다.
콘솔에서 mfpdev-cli.tar을 다운로드하고 위에서 인용 한 기사를 따랐습니다.mfpdev-cli를 오프라인 환경에 설치하는 방법은 무엇입니까?

  1. 온라인 컴퓨터로 mfpdev-cli.tar을 복사하십시오. 온라인 시스템에서

  2. , npm --cache ./.cache install mfpdev-cli.tar
  3. 아카이브 .cache 디렉토리 및 오프라인 시스템에 아카이브 파일을 복사합니다.
  4. 오프라인 컴퓨터에서 unarchive .cache directory입니다.

  • sudo npm install --cache ./.cache ./mfpdev-cli.tar -g

    는 그럼, 아래에 있어요 : 많은 다른 패키지

    npm ERR! fetch failed https://registry.npmjs.org/http-proxy/-/http-proxy-1.13.2.tgz
    npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

    ERR!WARN 반복.
    그리고 마침내 :

    npm ERR! Darwin 15.6.0
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--cache" "./.cache" "./mfpdev-cli.tar" "-g"
    npm ERR! node v4.5.0
    npm ERR! npm v2.15.9
    npm ERR! code ENOTFOUND
    npm ERR! errno ENOTFOUND
    npm ERR! syscall getaddrinfo

    npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
    npm ERR! network This is most likely not a problem with npm itself
    npm ERR! network and is related to network connectivity.
    npm ERR! network In most cases you are behind a proxy or have bad network settings.
    npm ERR! network
    npm ERR! network If you are behind a proxy, please make sure that the
    npm ERR! network 'proxy' config is set properly. See: 'npm help config'

    npm ERR! Please include the following file with any support request:
    npm ERR! /Users/babatch/Downloads/mfpdev-cli/npm-debug.log

    어떻게 오프라인 컴퓨터에 mfpdev-cli를 설치합니까?

  • 답변

    0

    문제는 npm이 http-proxy 패키지의 일부 파일 종속성으로 인해 온라인 저장소에 계속 접속하려고 시도한다는 것입니다.

    당신이 할 수있는 일은이 종속성을 독립적으로 얻거나 추가 한 다음 다시 시도하는 것입니다.

    0

    나는 몇 가지 방법을 시도하고 마침내 작동합니다. (-g없이) 온라인 시스템에서

    1. , npm install ./mfpdev-cli.tar
    2. cd node_modules
    3. tar -cvzf mfpdev-cli.tgz mfpdev-cli 그냥 오프라인 컴퓨터에 생성 mfpdev-cli.tgz 복사 :
      절차는 다음과 같습니다. 오프라인 시스템에서
    4. 는 현재
    5. sudo ln -s ../lib/node_modules/mfpdev-cli/bin/cli.js ./mfpdev

  • cd /usr/local/bin
  • sudo cp -r mfpdev-cli /usr/local/lib/node_modulestar -xvzf mfpdev-cli.tgz, 그것을 잘 작동하는 것 같군.

  • 관련 문제