解决方法:

  1. ionic start myTabs tabs --skip-deps
  2. cd .\myTabs
  3. cnpm install --save-dev
  4. ionic serve

> 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 ERR! code 1
npm ERR! Command failed: D:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 18: .: git-sh-setup: file not found
npm ERR!

E:\Projects\ionic>ionic start myTabs tabs --skip-deps
? The directory myTabs contains file(s) that could conflict. Would you like to overwrite the directory with this new pr
oject? Yes
✔ Creating directory .\myTabs - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template tabs (https://github.com/ionic-team/ionic2-starter-tabs/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
> git init
✔ Running command - done!
> git add -A
✔ Running command - done!
> git commit -m "Initial commit" --no-gpg-sign
✔ Running command - done!

♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Run your app in the browser (great for initial development):
ionic serve

Run on a device or simulator:
ionic cordova run ios

Test and share your app on a device with the Ionic View app:
http://view.ionic.io

? Link this app to your Ionic Dashboard to use tools like Ionic View? Yes

You will need to login in order to link this app. Please run the following commands to do so.
ionic login - login first
ionic link - then link your app

Go to your newly created project: cd .\myTabs

E:\Projects\ionic>cd .\myTabs

E:\Projects\ionic\myTabs>ionic serve
? Looks like a fresh checkout! No ./node_modules directory found. Would you like to install project dependencies? Yes
[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 ERR! code 1
npm ERR! Command failed: D:\Program Files\Git\cmd\git.EXE submodule update -q --init --recursive
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
npm ERR! D:\Program Files\Git\mingw64/libexec/git-core\git-submodule: line 19: .: git-sh-setup: file not found
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hasee\AppData\Roaming\npm-cache\_logs\2017-06-28T09_36_32_023Z-debug.log

E:\Projects\ionic\myTabs>cnpm install
\ [14/19] Installing typescript@2.3.4[@ionic/app-scripts@1.3.8 › bonjour@github:resin-io/bonjour] install bonjour from git github:resin-io/bonjour, may be very slow, please keep patience
\ [17/19] Installing xtend@^4.0.0platform unsupported @ionic/app-scripts@1.3.8 › chokidar@1.7.0 › 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 19 packages
√ Linked 530 latest versions
Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.5.3/win32-x64-48_binding.node
Download complete
Binary saved to E:\Projects\ionic\myTabs\node_modules\_node-sass@4.5.3@node-sass\vendor\win32-x64-48\binding.node
Caching binary to C:\Users\hasee\.npminstall_tarball\node-sass\4.5.3\win32-x64-48_binding.node
Binary found at E:\Projects\ionic\myTabs\node_modules\_node-sass@4.5.3@node-sass\vendor\win32-x64-48\binding.node
Testing binary
Binary is fine
√ Run 1 scripts
deprecate @ionic/app-scripts@1.3.8 › rollup-plugin-node-builtins@2.1.2 › 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-06-21): 15 packages (detail see file E:\Projects\ionic\myTabs\node_modules\.recently_updates.txt)
Today:
→ @ionic/app-scripts@1.3.8 › tiny-lr@1.0.4 › qs@^6.4.0(6.5.0) (15:08:19)
√ All packages installed (600 packages installed from npm registry, 1 packages installed from git, used 34s, speed 1002.56kB/s, json 548(1.1MB), tarball 32.47MB)

E:\Projects\ionic\myTabs>ionic serve
? Looks like this is an Ionic Angular project, would you like to install @ionic/cli-plugin-ionic-angular and continue?
Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✖ Running command - failed!
[ERROR] An error occurred while running npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest (exit
code 1):

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hasee\AppData\Roaming\npm-cache\_logs\2017-06-28T09_42_10_018Z-debug.log

E:\Projects\ionic\myTabs>ionic serve
? Looks like this is an Ionic Angular project, would you like to install @ionic/cli-plugin-ionic-angular and continue?
No
[WARN] You have no CLI project plugins installed. CLI functionality may be limited.

E:\Projects\ionic\myTabs>
E:\Projects\ionic\myTabs>cnpm install --save-dev
√ Installed 19 packages
√ Linked 0 latest versions
√ Run 0 scripts
√ All packages installed (used 32ms, speed 0B/s, json 0(0B), tarball 0B)

E:\Projects\ionic\myTabs>ionic serve
? Looks like this is an Ionic Angular project, would you like to install @ionic/cli-plugin-ionic-angular and continue?
Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✖ Running command - failed!
[ERROR] An error occurred while running npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest (exit
code 1):

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hasee\AppData\Roaming\npm-cache\_logs\2017-06-28T09_43_23_753Z-debug.log

E:\Projects\ionic\myTabs>cnpm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
√ Installed 1 packages
√ Linked 86 latest versions
√ Run 0 scripts
Recently updated (since 2017-06-21): 1 packages (detail see file E:\Projects\ionic\myTabs\node_modules\.recently_updates.txt)
√ All packages installed (58 packages installed from npm registry, used 2s, speed 621.91kB/s, json 87(203.4kB), tarball 1.24MB)

E:\Projects\ionic\myTabs>ionic serve
[INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to
cancel
[17:45:56] watch started ...
[17:45:56] build dev started ...
[17:45:56] clean started ...
[17:45:56] clean finished in 4 ms
[17:45:56] copy started ...
[17:45:56] transpile started ...
[17:45:58] transpile finished in 2.22 s
[17:45:58] preprocess started ...
[17:45:58] deeplinks started ...
[17:45:58] deeplinks finished in 12 ms
[17:45:58] preprocess finished in 14 ms
[17:45:58] webpack started ...
[17:45:58] copy finished in 2.40 s
[17:46:09] webpack finished in 10.89 s
[17:46:09] sass started ...
[17:46:10] sass finished in 1.10 s
[17:46:10] postprocess started ...
[17:46:10] postprocess finished in 51 ms
[17:46:10] lint started ...
[17:46:10] build dev finished in 14.36 s
[17:46:10] watch ready in 14.46 s
[17:46:10] dev server running: http://localhost:8100/

[INFO] Development server running
Local: http://localhost:8100

[17:46:20] lint finished in 9.73 s

  

Ionic3 遇到的一些错误-submodule update -q --init --recursive的更多相关文章

  1. npm遇到的问题--npm install 执行报错 /bin/git submodule update -q --init --recursive

    1.执行npm i 安装依赖时,报错:cannot read property 'match' of undefined 据说是npm本地缓存导致 解决方案: rm -rf package-lock. ...

  2. git submodule update --init --recursive

    最近在跑好几个模型,视频检测,物体检测,搭建mxnet时,有点问题,记录一下. 视频检测,mxnet需要用指定版本,git 切换到指定版本后,update了,但是依然提示说有些库找不到.想了想,应该是 ...

  3. Git submodule update 命令执行

    git submodule update操作可能导致执行.gitmodules文件中定义的任意shell命令. 受影响的产品 Git版本2.20.0至2.24.0 修复版本 Git v2.24.1,v ...

  4. git submodule update --init 和 --remote的区别

    git 的submodule 工具方便第三方库的管理,比如gitlab 上的各种开源工具,spdlog等 在项目目录下创建.gitmodule 里可以添加第三方库,然后在更新第三方库时,有两个选项 g ...

  5. ​vmware虚拟机centos网络配置错误,执行/etc/init.d/network start 或 restart 提示Device eth0 has different MAC address than expected, ignoring

    vmware虚拟机centos网络配置错误,执行/etc/init.d/network start 或 restart 提示Device eth0 has different MAC address ...

  6. Ionic3 遇到的一些错误- Error: Your isarray platform does not have Api.js

    执行:ionic cordova resources android --icon -i 生成应用图标时,出现下面的错误: 尝试解决方案: 删掉整个项目,重新创建,竟然好了....

  7. 错误:update 忘了加 where

    职业生涯应该都犯过的错误,幸好是在开发库,生产环境的库真是要严格的进行权限管理和脚本执行流程规范.

  8. 错误Batch update returned unexpected row count from update [0]; actual row count: 0;

    参考:http://blog.csdn.net/ssyan/article/details/7471343 也是出现类似问题,在前台页面的隐藏域中判断id是否为null,而没有去判断是否为空字符串. ...

  9. Ionic3 遇到的一些错误-Error: Cannot find module 'reflect-metadata'

    E:\Projects\ionic\myApp5>ionic serve Error: Cannot find module 'reflect-metadata' 解决方法: npm insta ...

随机推荐

  1. sql server 把数据 复制成脚本文件

    问题描述:想把一个数据库里的表和字段复制到另一个数据库里: 方法一:a.生成脚本文件 选择数据库右键->任务->生成脚本: b. 选择特定的数据库对象->下一步: c.高级-> ...

  2. 根据HttpServletRequest获取用户真实IP地址

    原因: 当我们通过request获取客户端IP时,自身服务器通常会为了保护信息或者负载均衡的目的,对自身服务器做反向代理.此时如果我们通过request.getRemoteAddr();可能获取到的是 ...

  3. Chrome控制台选择器简介

    Chrome的控制台是支持用$来获取元素的,这点可能是很多人不知道的.本篇文章将会简单介绍怎样更好的来使用这种快捷方式来获取元素. 判断当前窗口的$是来自谁的 我们知道jQ里面经常使用$来进行元素选择 ...

  4. Bootstrap对齐方式

    <p class="text-left">我居左</p> <p class="text-center">我居中</p& ...

  5. GCD之异步同步体会

    前面的博文也有写到同步异步,可能是看他人的博文,自己没有实验,感觉理解不深,所以就敲了些代码比较一下串行.并行分别对应的同步.异步. 1.首先创建串行.并行线程队列 1 2 dispatch_queu ...

  6. MVC轻量web应用

    前言:为了能够清晰的理解mvc架构,以一个简单的mvc架构web应用为例.例子为一个beer项目,用户可通过页面选择啤酒的种类,服务端根据用户的选择,给出相应的推荐. 涉及到的代码: view层:fo ...

  7. 一步一步带你做WebApi迁移ASP.NET Core2.0

    随着ASP.NET Core 2.0发布之后,原先运行在Windows IIS中的ASP.NET WebApi站点,就可以跨平台运行在Linux中.我们有必要先说一下ASP.NET Core. ASP ...

  8. Highway Networks Pytorch

    导读 本文讨论了深层神经网络训练困难的原因以及如何使用Highway Networks去解决深层神经网络训练的困难,并且在pytorch上实现了Highway Networks. 一 .Highway ...

  9. 第4章 同步控制 Synchronization ---哲学家进餐问题(The Dining Philosophers)

    哲学家进餐问题是这样子的:好几位哲学家围绕着餐桌坐,每一位哲学家要么思考,要么等待,要么就吃饭.为了吃饭,哲学家必须拿起两支筷子(分放于左右两端).不幸的是,筷子的数量和哲学家相等,所以每支筷子必须由 ...

  10. 【POJ】1704 Georgia and Bob(Staircase Nim)

    Description Georgia and Bob decide to play a self-invented game. They draw a row of grids on paper, ...