A-A+

ionic3开发hybrid app 教程之tutorial

2017年06月03日 APP开发 暂无评论 阅读 29 views 次

1. ionic start --help

    --type ................... Type of project to start (e.g. ionic-angular, ionic1) (default: ionic-angular)
    --app-name, -n ........... Human-readable name (use quotes around the name)
    --list, -l ............... List starter templates available
    --skip-deps .............. Skip npm/yarn package installation of dependencies
    --cordova ................ Include Cordova integration
    --no-git ................. Do not initialize a git repo
    --skip-link .............. Do not link app to an Ionic Account

  Examples:

    $ ionic start
    $ ionic start --list
    $ ionic start myApp blank
    $ ionic start myApp tabs --cordova
    $ ionic start myApp blank --type=ionic1

2.ionic start MyIonic2Project tutorial

✔ Creating directory .\MyIonic2Project - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template tutorial (https://github.com/ionic-team/ionic2-starter-tutorial/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
✖ Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):

        npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: acorn@4.0.13 (node_modules\acorn-dynamic-import\node_modules\acorn)
:
        npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime 'D:\最近网站\上海环境\webapp
\MyIonic2Project\node_modules\.staging\acorn-d3207bca\src\statement.js'
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ws@1.1.1 (node_modules\ws):
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EEXIST: file already exists, mkdir 'D:\最近网站\上海环境\webapp\MyI
onic2Project\node_modules\.staging\ws-c5054d98'
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: File exists: D:\最近网站\上海环境\webapp\MyIonic2Project\node_modul
es\.staging\ws-c5054d98

cd .\MyIonic2Project\

cnpm install

有时因为种种原因,可以有卡在这里不往下走,解决方案就是单个装。

按下表中的装,把大的装完,小的就很顺利的进行下去了。

"author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    "@angular/platform-browser": "4.1.2",
    "@angular/platform-browser-dynamic": "4.1.2",
    "@ionic-native/core": "3.10.2",
    "@ionic-native/splash-screen": "3.10.2",
    "@ionic-native/status-bar": "3.10.2",
    "@ionic/storage": "2.0.1",
    "ionic-angular": "3.3.0",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.11"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.3.7",
    "typescript": "2.3.3"
  },
  "description": "An Ionic project"
}


D:\最近网站\上海环境\ionicapp\myTutorial>cnpm install
/ [17/20] Installing jsonify@~0.0.0platform unsupported @ionic/app-scripts@1.3.7 › chokidar@1.6.1 › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(win32)
[fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)
√ Installed 20 packages
√ Linked 577 latest versions
Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.5.0/win32-x64-48_binding.node
Download complete
Binary saved to D:\最近网站\上海环境\ionicapp\myTutorial\node_modules\_node-sass@4.5.0@node-sass\vendor\win32-x64-48\binding.node
Caching binary to C:\Users\acer\.npminstall_tarball\node-sass\4.5.0\win32-x64-48_binding.node
Binary found at D:\最近网站\上海环境\ionicapp\myTutorial\node_modules\_node-sass@4.5.0@node-sass\vendor\win32-x64-48\binding.node
Testing binary
Binary is fine
√ Run 1 scripts
deprecate @ionic/app-scripts@1.3.7 › rollup-plugin-node-builtins@2.1.0 › browserify-fs@1.0.0 › level-filesystem@1.2.0 › level-sublevel@5.2.3 › xtend@2.0.6 › object-keys@~0.2.0 Please update to the latest object-keys
Recently updated (since 2017-05-30): 11 packages (detail see file D:\最近网站\上海环境\ionicapp\myTutorial\node_modules\.recently_updates.txt)
  Today:
    → @ionic/app-scripts@1.3.7 › autoprefixer@6.7.2 › caniuse-db@^1.0.30000618(1.0.30000679) (12:57:03)
√ All packages installed (651 packages installed from npm registry, used 2m, speed 20.61kB/s, json 731(1.17MB), tarball 1.19MB)

2017-06-06_184737

打赏作者
如果文章对您有所帮助请打赏支持本站发展。

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

标签:

给我留言

您必须 登录 才能发表留言!

Copyright © 大一网 保留所有权利.   Theme  Ality

用户登录 ⁄ 注册

分享到: