Visualizzazione dei risultati da 1 a 1 su 1

Visualizzazione discussione

  1. #1

    errori creazione app Ionic framework

    ciao sto facendo la guida di html su Ionic framework ho creato la prima app di esempio ma quando aggiungo la piattaforma ios e quando faccio ionic serve mi da strani errori, ieri mi dava errore nell'istallazione di grunt, non lo so cos'è, è il mio mac che non va ?
    mi dice
    "www" directory cannot be found. Please make sure the working directory is an Ionic project.
    There was an error serving your Ionic application: "www" directory cannot be found. Please make sure the working directory is an Ionic project.

    ma la cartella www c'è!!
    questo è il terminale


    android-da69e0b0500968c2:~ Roberta$ sudo npm install -g ionic
    Password:

    > spawn-sync@1.0.13 postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/node_modules/spawn-sync
    > node postinstall


    > node-sass@3.3.3 install /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass
    > node scripts/install.js

    Binary downloaded and installed at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass/vendor/darwin-x64-46/binding.node
    npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"4.1.2","npm":"2.14.4"})
    npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.1.2","npm":"2.14.4"})

    > node-sass@3.3.3 postinstall /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass
    > node scripts/build.js

    ` /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass/vendor/darwin-x64-46/binding.node ` exists.
    testing binary.
    Binary is fine; exiting.
    /usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires mkdirp@'~0.3.3' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/mkdirp,
    npm WARN unmet dependency which is version 0.5.1
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires osenv@'0.0.3' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/osenv,
    npm WARN unmet dependency which is version 0.1.3
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires nopt@'2' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/nopt,
    npm WARN unmet dependency which is version 3.0.4
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires semver@'2' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
    npm WARN unmet dependency which is version 5.0.1
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires ini@'~1.1.0' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/ini,
    npm WARN unmet dependency which is version 1.3.4
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires github-url-from-git@'~1.1.1' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/github-url-from-git,
    npm WARN unmet dependency which is version 1.4.0
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires github-url-from-username-repo@'^0.1.0' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo,
    npm WARN unmet dependency which is version 1.0.2
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires semver@'2' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
    npm WARN unmet dependency which is version 5.0.1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build requires colors@'0.6.x' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/node_modules/qrcode-terminal requires colors@'*' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/prompt/node_modules/winston requires colors@'0.x.x' but will load
    npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
    npm WARN unmet dependency which is version 0.6.0-1
    ionic@1.7.0 /usr/local/lib/node_modules/ionic
    ├── underscore@1.7.0
    ├── connect-livereload@0.5.2
    ├── proxy-middleware@0.7.0
    ├── progress@1.1.7
    ├── open@0.0.5
    ├── colors@0.6.2
    ├── q@1.0.1
    ├── async@0.9.2
    ├── crc@3.2.1
    ├── ncp@0.4.2
    ├── semver@4.3.6
    ├── expand-tilde@1.2.0 (user-home@1.1.1)
    ├── shelljs@0.2.6
    ├── cross-spawn@0.2.3 (lru-cache@2.7.0)
    ├── cli-table@0.3.1 (colors@1.0.3)
    ├── moment@2.10.6
    ├── event-stream@3.0.20 (stream-combiner@0.0.4, duplexer@0.1.1, pause-stream@0.0.11, from@0.1.3, split@0.2.10, through@2.3.8, map-stream@0.0.6)
    ├── finalhandler@0.2.0 (escape-html@1.0.1, debug@2.0.0)
    ├── connect@3.1.1 (utils-merge@1.0.0, parseurl@1.3.0, debug@1.0.4, finalhandler@0.1.0)
    ├── form-data@0.1.4 (mime@1.2.11, combined-stream@0.0.7)
    ├── optimist@0.6.0 (wordwrap@0.0.3, minimist@0.0.10)
    ├── npm@2.1.3
    ├── serve-static@1.7.1 (utils-merge@1.0.0, escape-html@1.0.1, parseurl@1.3.0, send@0.10.1)
    ├── opbeat-ionic@1.1.3 (json-stringify-safe@5.0.1, console-log-level@1.2.0, stackman@0.2.3, after-all@2.0.2)
    ├── tiny-lr-fork@0.0.5 (debug@0.7.4, qs@0.5.6, faye-websocket@0.4.4, noptify@0.0.3)
    ├── request@2.51.0 (aws-sign2@0.5.0, forever-agent@0.5.2, caseless@0.8.0, tunnel-agent@0.4.1, oauth-sign@0.5.0, stringstream@0.0.4, json-stringify-safe@5.0.1, tough-cookie@2.2.0, mime-types@1.0.2, qs@2.3.3, node-uuid@1.4.3, combined-stream@0.0.7, http-signature@0.10.1, hawk@1.1.1, form-data@0.2.0, bl@0.9.4)
    ├── cheerio@0.19.0 (entities@1.1.1, dom-serializer@0.1.0, htmlparser2@3.8.3, css-select@1.0.0, lodash@3.10.1)
    ├── xml2js@0.4.4 (sax@0.6.1, xmlbuilder@3.1.0)
    ├── vinyl-fs@0.3.7 (graceful-fs@3.0.8, lodash@2.4.2, vinyl@0.4.6, mkdirp@0.5.1, through2@0.6.5, strip-bom@1.0.0, glob-watcher@0.0.6, glob-stream@3.1.18)
    ├── prompt@0.2.12 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.7, winston@0.6.2, utile@0.2.1)
    ├── unzip@0.1.9 (setimmediate@1.0.2, pullstream@0.4.1, readable-stream@1.0.33, match-stream@0.0.2, binary@0.3.0, fstream@0.1.31)
    ├── gulp@3.8.8 (pretty-hrtime@0.2.2, interpret@0.3.10, deprecated@0.0.1, archy@0.0.2, minimist@1.2.0, semver@3.0.1, tildify@1.1.2, chalk@0.5.1, orchestrator@0.3.7, liftoff@0.12.1, gulp-util@3.0.6)
    └── ionic-app-lib@0.5.1-beta.0 (request-progress@0.3.1, winston@1.0.2, vinyl-fs@1.0.0, cross-spawn@2.0.0, archiver@0.5.2, node-sass@3.3.3, ionic-cordova-lib@5.1.10)
    android-da69e0b0500968c2:~ Roberta$ cd /Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp
    android-da69e0b0500968c2:firstapp Roberta$ ionic start firstapp
    ************************************************** ****
    Dependency warning - for the CLI to run correctly,
    it is highly suggested to install/upgrade the following:

    Install ios-sim to deploy iOS applications. `npm install -g ios-sim` (may require sudo)
    Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)

    ************************************************** ****
    Creating Ionic app in folder /Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/firstapp based on tabs project
    Downloading: https://github.com/driftyco/ionic-ap...ive/master.zip
    [=============================] 100% 0.0s
    Downloading: https://github.com/driftyco/ionic-st...ive/master.zip
    [=============================] 100% 0.0s
    Updated the hooks directory to have execute permissions
    Update Config.xml
    Initializing cordova project
    Adding in iOS application by default
    Added ios platform

    Your Ionic project is ready to go! Some quick tips:

    * cd into your project: $ cd firstapp

    * Setup this project to use Sass: ionic setup sass

    * Develop in the browser with live reload: ionic serve

    * Add a platform (ios or Android): ionic platform add ios [android]
    Note: iOS development requires OS X currently
    See the Android Platform Guide for full Android installation instructions:
    https://cordova.apache.org/docs/en/e..._index.md.html

    * Build your app: ionic build <PLATFORM>

    * Simulate your app: ionic emulate <PLATFORM>

    * Run your app on a device: ionic run <PLATFORM>

    * Package an app using Ionic package service: ionic package <MODE> <PLATFORM>

    For more help use ionic --help or ionic docs

    Visit the Ionic docs: http://ionicframework.com/docs


    Create an ionic.io account to send Push Notifications and use the Ionic View app?
    (Y/n): Y
    +---------------------------------------------------------+
    + New Ionic Updates for October 2015
    +
    + The View App just landed. Preview your apps on any device
    + http://view.ionic.io
    +
    + Invite anyone to preview and test your app
    + ionic share EMAIL
    +
    + Generate splash screens and icons with ionic resource
    + http://ionicframework.com/blog/autom...plash-screens/
    +
    +---------------------------------------------------------+
    android-da69e0b0500968c2:firstapp Roberta$ ionic platform add ios
    Error: %s Error: ENOENT: no such file or directory, scandir '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/hooks'
    at Error (native)
    at Object.fs.readdirSync (fs.js:813:18)
    at Object.setHooksPermission (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/hooks.js:116:24)
    at Object.IonicTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:52:13)
    at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:96:32)
    at Object.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:118:18)
    at node.js:952:3
    Updated the hooks directory to have execute permissions
    Error happened { [Error: ENOENT: no such file or directory, open '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml']
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml' }
    Error: ENOENT: no such file or directory, open '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml'
    at Error (native)
    android-da69e0b0500968c2:firstapp Roberta$ ionic serve

    Multiple addresses available.
    Please select which address to use by entering its number from the list below:
    1) 192.168.1.3 (en1)
    2) localhost
    Address Selection: 2
    Selected address: localhost
    "www" directory cannot be found. Please make sure the working directory is an Ionic project.
    There was an error serving your Ionic application: "www" directory cannot be found. Please make sure the working directory is an Ionic project.
    android-da69e0b0500968c2:firstapp Roberta$ ionic platform add ios
    Error: %s Error: ENOENT: no such file or directory, scandir '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/hooks'
    at Error (native)
    at Object.fs.readdirSync (fs.js:813:18)
    at Object.setHooksPermission (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/hooks.js:116:24)
    at Object.IonicTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:52:13)
    at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:96:32)
    at Object.<anonymous> (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:118:18)
    at node.js:952:3
    Updated the hooks directory to have execute permissions
    Error happened { [Error: ENOENT: no such file or directory, open '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml']
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml' }
    Error: ENOENT: no such file or directory, open '/Users/Roberta/Documents/macbook/mobilelab/ionic/firstapp/config.xml'
    at Error (native)
    android-da69e0b0500968c2:firstapp Roberta$
    Ultima modifica di surferbloggy; 13-10-2015 a 12:22

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.