Open gigocabrera opened 7 years ago
UPDATE
NPM version 5.3.0 node 7.10.0
I tried using sudo to no avail I tried deleting node_modules to no avail
This is what I see from the npm error log file
7510 silly extract caseless@https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz
7511 silly extract base64-js@https://registry.npmjs.org/base64-js/-/base64-js-1.1.2.tgz
7512 silly extract q@https://registry.npmjs.org/q/-/q-1.5.0.tgz
7513 silly extract shelljs@https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz
7514 silly extract q@https://registry.npmjs.org/q/-/q-1.5.0.tgz
7515 silly extract cordova-app-hello-world@https://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.12.0.tgz
7516 silly extract cookie-signature@https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz
7517 silly extract cookie@https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz
7518 silly doReverseSerial unbuild 4242
7519 silly unbuild @ionic/app-scripts@2.1.3
7520 info lifecycle @ionic/app-scripts@2.1.3~preuninstall: @ionic/app-scripts@2.1.3
7521 info lifecycle @ionic/app-scripts@2.1.3~uninstall: @ionic/app-scripts@2.1.3
7522 verbose unbuild rmStuff @ionic/app-scripts@2.1.3 from /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules
7523 silly isEverInside /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/.bin/ionic-app-scripts is not inside /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/@ionic/app-scripts
7524 silly gentlyRm parent.path = /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/@ionic/app-scripts
7525 silly gentlyRm parent.managed = /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/@ionic/app-scripts is in /Users/gigocabrera/Documents/ionic/CajaFuerte-app
7526 silly gentlyRm target.path = /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/.bin/ionic-app-scripts
7527 silly gentlyRm target.symlink = ../@ionic/app-scripts/bin/ionic-app-scripts.js
7528 silly gentlyRm target.managed = /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/.bin/ionic-app-scripts is in /Users/gigocabrera/Documents/ionic/CajaFuerte-app
7529 silly gentlyRm target.inParent = { target: '/Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/@ionic/app-scripts/bin/ionic-app-scripts.js',
7529 silly gentlyRm path: '/Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/@ionic/app-scripts' }
7530 info lifecycle @ionic/app-scripts@2.1.3~postuninstall: @ionic/app-scripts@2.1.3
7531 silly unbuild cordova
7532 info lifecycle undefined~preuninstall: undefined
7533 info lifecycle undefined~uninstall: undefined
7534 verbose unlock done using /Users/gigocabrera/.npm/_locks/staging-ee0997c7537d05fd.lock for /Users/gigocabrera/Documents/ionic/CajaFuerte-app/node_modules/.staging
7535 warn ionic-img-viewer@2.4.0 requires a peer of ionic-angular@~3.4.0 but none was installed.
7536 warn ng2-translate@5.0.0 requires a peer of @angular/core@^2.0.0 but none was installed.
7537 warn ng2-translate@5.0.0 requires a peer of @angular/http@^2.0.0 but none was installed.
7538 warn ajv-keywords@2.1.0 requires a peer of ajv@>=5.0.0 but none was installed.
7539 verbose stack TypeError: Cannot read property '0' of undefined
7539 verbose stack at rmStuff (/usr/local/lib/node_modules/npm/lib/unbuild.js:61:24)
7539 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
7539 verbose stack at ret (eval at makeNodePromisifiedEval (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promisify.js:1:1), <anonymous>:13:39)
7539 verbose stack at lifecycle.then.then (/usr/local/lib/node_modules/npm/lib/install/action/unbuild.js:12:12)
7539 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
7539 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
7539 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
7539 verbose stack at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
7539 verbose stack at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
7539 verbose stack at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
7539 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
7539 verbose stack at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
7539 verbose stack at runCallback (timers.js:672:20)
7539 verbose stack at tryOnImmediate (timers.js:645:5)
7539 verbose stack at processImmediate [as _immediateCallback] (timers.js:617:5)
7540 verbose cwd /Users/gigocabrera/Documents/ionic/CajaFuerte-app
7541 verbose Darwin 15.6.0
7542 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@ionic/app-scripts@latest" "--save-dev"
7543 verbose node v7.10.0
7544 verbose npm v5.3.0
7545 error Cannot read property '0' of undefined
7546 verbose exit [ 1, true ]
This issue turned out to be related to npm 5.3.0. The issue below had a fix that worked for me https://github.com/ionic-team/ionic-app-scripts/issues/1039
(one month later :p) npm install npm@latest -g
npm 5.4.1 solved this issue
EDIT: Finally, 5.4.1 not working (another issue) npm install npm@5.0.3 -g (downgrade to 5.0.3 working)
@jeromeXoo I have exactly the same problem like you, and when I use npm@5.0.3 downgrade it start working. Before I used 5.3.0 and update it to 5.4.1 but I get the same error.
This is a known, and rather odd, bug with npm: https://github.com/npm/npm/issues/17858
F*cking NPM version 5 man, I have seen so many bugs with NPM version 5.x
++ the 5.0.3 downgrade kludge works for me as well. Thanks.
Downgrade still works like a charm with old projects.
Short description of the problem:
I tried to follow the steps for ionic release 3.6.0 and when I try to install app-scripts I get the error shown below
https://github.com/ionic-team/ionic/releases
What behavior are you expecting?
I was expecting the upgrade to work without any issues
Steps to reproduce:
Which @ionic/app-scripts version are you using?
Other information:
ionic info is not working anymore but here's a copy of my package.json