初学ionic遇到问,ionic start报错

初学ionic遇到问,执行ionic start myApp tabs后报错,求大神帮忙看看怎么解决.

Creating an Ionic app in D:\nodejs\myApp based on the tabs template.

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
Installing npm packages (may take a minute or two)...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall!

图片描述

阅读 5k
4 个回答

npm下东西的时候卡住了?

建议更新nodejs,npm

通过异常信息可以看出,应该是 npm install 安装依赖包的时候出了异常,可以先确认一下当前环境和npm的设置,在重新运行 npm install 命令

1.ionic info - 可以查看详细的运行环境信息

2.npm config get registry - 查看当前使用的 npm 仓库,若非国内镜像,推荐设置国内镜像,如设置淘宝镜像:

npm config set registry https://registry.npm.taobao.org

请问你解决了吗?我也遇到这个问题了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进