MobileFirst Platform 8.0の開発用にOS Xマシンをオフライン(インターネットにアクセスできない)に設定しようとしましたが、MobileFirst CLIのインストールに失敗しました。
私はthis articleを参照しています。
オフラインマシンに8.0.0.0-MFPF-DevKit-MacOSX-IF2016080923.zip
をインストールした後、run.sh
とconsole.sh
をインストールしました。
開発サーバーが正常に起動しました。これで、Operations Consoleにアクセスできます。
コンソールからmfpdev-cli.tar
をダウンロードし、上記の記事に従ってください。オフライン環境にmfpdev-cliをインストールするには?
mfpdev-cli.tar
をオンラインマシンにコピーします。オンライン・マシン上で
、npm --cache ./.cache install mfpdev-cli.tar
- アーカイブ.cacheディレクトリ、およびオフラインマシンにアーカイブファイルをコピーします。
- オフラインマシンでは
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
繰り返し。
そして最後に:私はオフラインのマシンにmfpdev-cli
をインストールするにはどうすればよい
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
?