以下のコマンドでionicをインストールし、buildコマンドを実行したところ、npmエラーが発生しました。公式フォーラムを見ても、原因わからず、解決方法を教えて頂きたいです。OSはmac Sierraです。
何卒よろしくお願い致します。
ちなみに、バージョン3.x系だと以下のエラーが発生したので、2.x系をインストールしています。
([3.x系のエラー内容])(https://forum.ionicframework.com/t/error-occurred-while-loading-plugins-cli-functionality-may-be-limited/89570)
↓ionicインストール&プロジェクト追加&iOSでビルド
npm -g install ionic@2.2.3 ionic start myApp tabs cd myApp ionic build ios
↓エラー内容
sh: ionic-app-scripts: command not found > ionic-app-base@0.0.0 ionic:build /Users/hiro/Documents/ionic/myApp > ionic-app-scripts build npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! ionic-app-base@0.0.0 ionic:build: `ionic-app-scripts build` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the ionic-app-base@0.0.0 ionic:build 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/hiro/.npm/_logs/2017-08-07T16_02_44_925Z-debug.log
ionic、cordovaの環境は以下になります。
↓(ionic info --verboseの実行結果)
Task: title=info, name=info, summary=List information about the users runtime environment, isProjectTask=false, run=function run() { return Info.gatherInfo().then(function(info) { Info.printInfo(info); Info.checkRuntime(info); }).catch(function(ex) { appLibUtils.fail('There was an error retrieving your environment information:', ex); }); } Your system information: Cordova CLI: 7.0.1 Ionic Framework Version: 3.6.0 Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 Ionic App Scripts Version: 2.1.3 ios-deploy version: 1.9.1 ios-sim version: 6.0.0 OS: macOS Sierra Node Version: v8.2.1 Xcode version: Xcode 8.3.3 Build version 8E3004b System Info: cordova=7.0.1 , xcode=Xcode 8.3.3 Build version 8E3004b , ios_deploy=1.9.1 , ios_sim=6.0.0 , ionic_cli=2.2.3, ionic_lib=2.2.1, ionic=3.6.0, ionic_app_scripts=2.1.3, node=v8.2.1, os=macOS Sierra
あなたの回答
tips
プレビュー