请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

6回答

qq_風華亂舞_0 2018-01-09 17:01:01

把这个package.json复制了,然后删除了node_modules 重新npm install 就好了。



{

"name": "myApp",

"version": "0.0.1",

"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": "5.0.3",

"@angular/compiler": "5.0.3",

"@angular/compiler-cli": "5.0.3",

"@angular/core": "5.0.3",

"@angular/forms": "5.0.3",

"@angular/http": "5.0.3",

"@angular/platform-browser": "5.0.3",

"@angular/platform-browser-dynamic": "5.0.3",

"@ionic-native/app-version": "^4.5.2",

"@ionic-native/camera": "^4.4.2",

"@ionic-native/core": "4.4.0",

"@ionic-native/file": "^4.4.2",

"@ionic-native/file-path": "^4.4.2",

"@ionic-native/qr-scanner": "^4.5.2",

"@ionic-native/splash-screen": "4.4.0",

"@ionic-native/status-bar": "4.4.0",

"@ionic-native/transfer": "^3.14.0",

"@ionic/storage": "^2.1.3",

"amdefine": "^1.0.1",

"cordova-android": "~6.3.0",

"cordova-browser": "~5.0.1",

"cordova-plugin-app-version": "^0.1.9",

"cordova-plugin-camera": "^3.0.0",

"cordova-plugin-compat": "^1.2.0",

"cordova-plugin-device": "^1.1.4",

"cordova-plugin-file": "^5.0.0",

"cordova-plugin-file-transfer": "^1.7.0",

"cordova-plugin-filepath": "^1.1.0",

"cordova-plugin-ionic-webview": "^1.1.16",

"cordova-plugin-qrscanner": "^2.5.0",

"cordova-plugin-splashscreen": "^4.0.3",

"cordova-plugin-swift-support": "^3.1.1",

"cordova-plugin-whitelist": "^1.3.1",

"cordova-sqlite-storage": "^2.1.2",

"ionic-angular": "3.9.2",

"ionic-plugin-keyboard": "^2.2.1",

"ionicons": "3.0.0",

"moment": "^2.20.1",

"rxjs": "5.5.2",

"sw-toolbox": "3.6.0",

"zone.js": "0.8.18"

},

"devDependencies": {

"@ionic/app-scripts": "^3.1.4",

"tslint": "^5.8.0",

"typescript": "2.4.2"

},

"description": "An Ionic project",

"cordova": {

"plugins": {

"ionic-plugin-keyboard": {},

"cordova-plugin-whitelist": {},

"cordova-plugin-device": {},

"cordova-plugin-splashscreen": {},

"cordova-plugin-ionic-webview": {},

"cordova-plugin-camera": {},

"cordova-plugin-file": {},

"cordova-plugin-file-transfer": {},

"cordova-plugin-filepath": {},

"cordova-sqlite-storage": {},

"cordova-plugin-qrscanner": {},

"cordova-plugin-app-version": {}

},

"platforms": [

"android",

"browser"

]

}

}


1 回复 有任何疑惑可以回复我~
qq_二月四号_0 2018-01-28 12:32:10

我也出现了这个问题,方法都试了也没解决,你们的都解决了吗?  

0 回复 有任何疑惑可以回复我~
慕粉0958041534 2018-01-02 22:11:49

问题解决了没,我也遇到同样的问题。一刷新就报错

0 回复 有任何疑惑可以回复我~
Parry 2017-12-19 22:54:11

官方的一个插件 issue

请看这里:https://github.com/ionic-team/ionic-cli/issues/2574

0 回复 有任何疑惑可以回复我~
Parry 2017-12-19 22:51:38

尝试执行下 npm install @ionic/cli-utils --save  试试。

0 回复 有任何疑惑可以回复我~
Parry 2017-12-19 22:48:00

ionic info 我看下系统信息。

0 回复 有任何疑惑可以回复我~
  • 这个试过了  还是会报错    
      @ionic/cli-plugin-proxy : 1.5.6
        @ionic/cli-utils        : 1.12.0
        ionic (Ionic CLI)       : 3.12.0
    
    System:
    
        Node : v6.10.3
        npm  : 3.10.10
        OS   : Windows 10
    
    Misc:
    
        backend : legacy
    回复 有任何疑惑可以回复我~ 2017-12-20 12:36:19
  • 你更新ionic cli 到最新版本看下,新版本好像修复了。
    回复 有任何疑惑可以回复我~ 2017-12-20 12:49:36
  • cli更新到最新版本 连项目都下不了了  
    cli packages: (/usr/local/lib/node_modules)
    
        @ionic/cli-plugin-proxy : 1.5.6
        @ionic/cli-utils        : 1.19.0
        ionic (Ionic CLI)       : 3.19.0
    
    System:
    
        Node : v8.5.0
        npm  : 5.6.0 
        OS   : macOS Sierra
    
    Environment Variables:
    
        HTTP_PROXY       : not set
        http_proxy       : not set
        HTTPS_PROXY      : not set
        https_proxy      : not set
        IONIC_HTTP_PROXY : not set
        PROXY            : not set
        proxy            : not set
    
    Misc:
    
        backend : pro
    
    ^C
    xccloudsdeMacBook-Pro:learnapp xcclouds$ ionic start 05-05
    
    ? What starter would you like to use: tabs
    ✖ Downloading and extracting tabs starter - failed!
    [ERROR] Network connectivity error occurred, are you offline?
    
            If you are behind a firewall and need to configure proxy settings, see: 
            https://ionicframework.com/docs/cli/configuring.html#using-a-proxy
            
            Error: getaddrinfo ENOTFOUND d2ql0qc7j8u4b2.cloudfront.net 
            d2ql0qc7j8u4b2.cloudfront.net:443
                at errnoException (dns.js:53:10)
                at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:95:26)
    回复 有任何疑惑可以回复我~ 2017-12-20 15:06:42
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信