2017-05-15 6 views
1

Mac(OS Sierraを実行中)にNativescriptをインストールしようとしています。私はウェブサイトが言っているように正確にやっているし、私は解決策を見つけることができるすべての場所を検索しようとしましたが、運はありません。Nativescriptのインストール:Cocoapodsのエラー

私は最初にいくつかの推奨されていない警告を受け取りますが、実際にはすべてがCocoapodsに達すると排水管を下るようになり始めます。ここで

は(全部を投稿して申し訳ありませんが、多分私は気づいていないよ、他のエラーがある)端末上で何が起こっている:

Theos-MacBook-Pro:/ theobalestra$ brew install xcproj 
Warning: xcproj-0.2.1 already installed 
Theos-MacBook-Pro:/ theobalestra$ npm i -g nativescript 
npm WARN deprecated [email protected]: Use uuid module instead 
npm WARN deprecated [email protected]: This package is discontinued.     Use [email protected]^4.0.0. 
npm WARN deprecated [email protected]: Use uuid module instead 

> [email protected] preuninstall /Users/theobalestra/.npm- packages/lib/node_modules/nativescript 
> node preuninstall.js 

Failed to complete all pre-uninstall steps. 
/Users/theobalestra/.npm-packages/bin/nativescript ->  /Users/theobalestra/.npm-packages/lib/node_modules/nativescript/bin/tns 
/Users/theobalestra/.npm-packages/bin/tns -> /Users/theobalestra/.npm- packages/lib/node_modules/nativescript/bin/tns 

> [email protected] postinstall /Users/theobalestra/.npm- packages/lib/node_modules/nativescript 
> node postinstall.js 

WARNING: adb from the Android SDK is not installed or is not configured  properly. 
For Android-related operations, the NativeScript CLI will use a built-in version of adb. 
To avoid possible issues with the native Android emulator, Genymotion or connected 
Android devices, verify that you have installed the latest Android SDK and 
its dependencies as described in  http://developer.android.com/sdk/index.html#Requirements 

TIP: To avoid setting up the necessary environment variables, you can use the Homebrew package manager to install the Android SDK and its dependencies. 

Verifying CocoaPods. This may take more than a minute, please be patient. 
    ◜ Installing iOS runtime.⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ normalizeTree: sill install lo  
◠ Installing iOS runtime.⸨░░░░░░░░░░░░░░░░░░⸩ ⠙ normalizeTree: sill install lo 
◝ Installing iOS runtime.⸨░░░░░░░░░░░░░░░░░░⸩ ⠙ normalizeTree: sill install lo 
◞ Installing iOS runtime.⸨░░░░░░░░░░░░░░░░░░⸩ ⠙ normalizeTree: sill install lo 
◡ Installing iOS runtime.⸨░░░░░░░░░░░░░░░░░░⸩ ⠙ normalizeTree: sill install lo 
◟ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░░⸩ ⠧ cloneCurrentTree: sill cloneCu 
◜ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◠ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal  
◝ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◞ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◡ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◟ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◜ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◠ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◝ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◞ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◡ Installing iOS runtime.⸨ ░░░░░░░░░░░░░░⸩ ⠙ loadRequestedDeps: sill instal 
◟ Installing iOS runtime.⸨    ░░░░░⸩ ⠧ extract:tns-ios: sill doParall 
◜ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◠ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◝ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◞ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◡ Installing iOS runtime.⸨    ░░░░░⸩ ⠦ extract:tns-ios: sill doParall 
◟ Installing iOS runtime.⸨    ░░░░░⸩ ⠏ extract:tns-ios: sill doParall 
◜ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◠ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◝ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◞ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◡ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◟ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◜ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◠ Installing iOS runtime.⸨    ░░░░░⸩ ⠇ extract:tns-ios: sill doParall 
◝ Installing iOS runtime.⸨    ░░░░░⸩ ⠸ extract:tns-ios: sill [email protected] /private/var/folders/k5/jmd4lpjs4d9g2h9g_qw5qypm0000gn/T/nativescript-check-cocoapods117414-14624-9zer4y.acgt8uayvi 
└── [email protected] 

npm WARN [email protected] No description 
npm WARN [email protected] No repository field. 
npm WARN [email protected] No license field. 

    ◠ Verifying CocoaPods. This may take some time, please be patient.. 
Path must be a string. Received undefined 
Failed to display command help { Error 
at Object.<anonymous> (/Users/theobalestra/.npm- packages/lib/node_modules/nativescript/lib/common/errors.js:15:23) 
    at Module._compile (module.js:570:32) 
    at Object.Module._extensions..js (module.js:579:10) 
    at Module.load (module.js:487:32) 
    at tryModuleLoad (module.js:446:12) 
    at Function.Module._load (module.js:438:3) 
    at Module.require (module.js:497:17) 
    at require (internal/module.js:20:19) 
    at Object.<anonymous> (/Users/theobalestra/.npm- packages/lib/node_modules/nativescript/lib/nativescript-cli.js:14:18) 
    at Module._compile (module.js:570:32) 
    name: 'Exception', 
    message: 'Unknown command \'post-install-cli\'. Try \'$ tns help\'  for a full list of supported commands.', 
    errorCode: 127, 
    suppressCommandHelp: true } 
/Users/theobalestra/.npm-packages/lib 
└── [email protected] 
+0

あなたがこれを解決しましたか? – ceebreenk

答えて

0

最近の更新はnativescriptドキュメントMacOSのセットアップの一部を非推奨しています次のような手順があります。

android update sdk --filter tools,platform-tools,android-25,build-tools-25.0.2,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui 

不足しているパッケージを特定するには、sdkmanager --listを使用します。最低でも、あなたが持っている必要があります。

build-tools;25.0.2 
extras;android;m2repository 
extras;google;m2repository 
platform-tools 
platforms;android-25 
tools 

をどれかが欠けている場合は、それらをインストールするsdkmanagerを使用します。

sdkmanager "extras;android;m2repository" 
sdkmanager "extras;google;m2repository" 
etc 
関連する問題