ionic-team / ionic-team/ionic-cli

`ionic info` without having run `npm install`

未关闭
#3,932 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
2k
派生
682
PR 合并指标
30 天内没有已合并 PR

描述

Running `ionic info` on a fresh checkout of a project without running `npm install` first leads to some output like this:

```
λ ionic info

[ERROR] Error loading ionic-angular package.json: Error: Cannot find module 'ionic-angular/package'
[ERROR] Error loading @ionic/app-scripts package.json: Error: Cannot find module '@ionic/app-scripts/package'

Ionic:

ionic (Ionic CLI) : 4.10.3 (C:\Users\Jan\scoop\persist\nvm\nodejs\v10.15.1\node_modules\ionic)
Ionic Framework : not installed
@ionic/app-scripts : not installed

Cordova:

cordova (Cordova CLI) : 9.0.0
Cordova Platforms : not available
Cordova Plugins : not available

System:

ios-deploy : 1.9.2
NodeJS : v10.15.1 (C:\Users\Jan\scoop\apps\nvm\current\nodejs\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Xcode : Xcode 10.1
```

It might be useful to recognize that this is probably because of a missing `npm install` and educate the user about this.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。