> ionic cordova resources error in new version


#1

Error while run command

ionic cordova resources

? Uploading source images to prepare for transformations - failed!
Error: getaddrinfo ENOTFOUND res.ionic.io res.ionic.io:443

ionic v -3.4.0
cli v 1.4.0


#2

What version were you running before?


#3

before update i’m using

@angular/common”: “2.2.1”,
"@angular/compiler": “2.2.1”,
"@angular/compiler-cli": “2.2.1”,
"@angular/core": “2.2.1”,
"@angular/forms": “2.2.1”,
"@angular/http": “2.2.1”,
"@angular/platform-browser": “2.2.1”,
"@angular/platform-browser-dynamic": “2.2.1”,
"@angular/platform-server": “2.2.1”,
"@ionic/storage": “1.1.7”,
“ionic-angular”: “2.0.1”,
“ionic-native”: “2.4.1”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.0-beta.12”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “0.6.26”


#4

And now? Please also post your ionic info output.


#5

D:\Projects\InsBank>ionic info
? 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 - done!
[ERROR] Error with .\node_modules\ionic-angular\package.json file: FILE_NOT_FOUND
[ERROR] Error with .\node_modules@ionic\app-scripts\package.json file: FILE_NOT_FOUND

global packages:

@ionic/cli-plugin-proxy : 1.3.1
@ionic/cli-utils        : 1.4.0
Ionic CLI               : 3.4.0

local packages:

@ionic/app-scripts              : not installed
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : not installed

System:

Node       : v7.10.0
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.1

#6

Ionic doesn’t really work with npm5 yet. Downgrade to an older version please.

Also your project is totally broken, see the missing local packages etc. What does your current packages.json look like?


#7
{
  "name": "myBasicIonicSetupv3-4-0",
  "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": "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",
    "@ionic/cli-plugin-ionic-angular": "1.3.1",
    "typescript": "2.3.3"
  },
  "description": "An Ionic project"
}

New version npm install not working
#8

Your ionic info says something different.
Can you run npm install and then ionic info again please.


#9

npm install cause an error


npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.np
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
npm ERR! Cannot read property 'find' of undefined
npm ERR! Cannot read property 'find' of undefined

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

error file

9543 silly extract util@0.10.3
9544 silly pacote trying util@https://registry.npmjs.org/util/-/util-0.10.3.tgz by hash: sha1-evsa/lCAUkZInj23/g7TeTNqwPk=
9545 silly pacote webpack-sources@https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.1.5.tgz extracted to D:\Projects\InsBank\node_modules\.staging\webpack-sources-afb86068 by content address 421ms
9546 silly pacote meow@https://registry.npmjs.org/meow/-/meow-3.7.0.tgz extracted to D:\Projects\InsBank\node_modules\.staging\meow-2a74f282 by content address 150ms
9547 silly extract inherits@2.0.1
9548 silly pacote trying inherits@https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz by hash: sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=
9549 silly pacote vary@https://registry.npmjs.org/vary/-/vary-1.1.1.tgz extracted to D:\Projects\InsBank\node_modules\.staging\vary-4d4c1485 by content address 177ms
9550 silly extract underscore.string@3.3.4
9551 silly pacote trying underscore.string@https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz by hash: sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=
9552 silly extract readable-stream@2.2.11
9553 silly pacote trying readable-stream@https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.11.tgz by hash: sha512-h+8+r3MKEhkiVrwdKL8aWs1oc1VvBu33ueshOvS26RsZQ3Amhx/oO3TKe4lApSV9ueY6as8EAh7mtuFjdlhg9Q==
9554 silly pacote read-pkg-up@https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz extracted to D:\Projects\InsBank\node_modules\.staging\read-pkg-up-e4668063 by content address 448ms
9555 silly extract stream-browserify@2.0.1
9556 silly pacote trying stream-browserify@https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz by hash: sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=
9557 silly pacote read-pkg@https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz extracted to D:\Projects\InsBank\node_modules\.staging\read-pkg-e3e72013 by content address 447ms
9558 silly extract readable-stream@2.2.11
9559 silly pacote trying readable-stream@https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.11.tgz by hash: sha512-h+8+r3MKEhkiVrwdKL8aWs1oc1VvBu33ueshOvS26RsZQ3Amhx/oO3TKe4lApSV9ueY6as8EAh7mtuFjdlhg9Q==
9560 verbose stack TypeError: Cannot read property 'find' of undefined
9560 verbose stack     at opts.integrity.digests.find.hash (C:\Users\1000227\AppData\Roaming\npm\node_modules\npm\node_modules\ssri\index.js:264:33)
9560 verbose stack     at Array.find (native)
9560 verbose stack     at Transform.on (C:\Users\1000227\AppData\Roaming\npm\node_modules\npm\node_modules\ssri\index.js:263:15)
9560 verbose stack     at emitNone (events.js:91:20)
9560 verbose stack     at Transform.emit (events.js:188:7)
9560 verbose stack     at endReadableNT (_stream_readable.js:975:12)
9560 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:80:11)
9560 verbose stack     at process._tickCallback (internal/process/next_tick.js:104:9)
9561 verbose cwd D:\Projects\InsBank
9562 verbose Windows_NT 6.1.7601
9563 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\1000227\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
9564 verbose node v7.10.0
9565 verbose npm  v5.0.1
9566 error Cannot read property 'find' of undefined
9567 verbose exit [ 1, true ]

#10

ionic info

global packages:

@ionic/cli-plugin-proxy : 1.3.1
@ionic/cli-utils        : 1.4.0
Ionic CLI               : 3.4.0

local packages:

@ionic/app-scripts              : not installed
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : not installed

System:

Node       : v7.10.0
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.1

#11

THis is the complete error message? I don’t think so.

Also: This means you have problems connecting to npmjs. Probably proxy, firewall or something.


#12

You are still working with an unsupported NPM version. I told you 2 times already that this doesn’t work.

Good luck fixing that problem, I won’t help you any more.


#13

i’m getting error while run ionic serve -l

Error: Cannot find module ‘@ionic/app-scripts’


#14

A post was split to a new topic: Ionic cordova resources Error 400