npm install error after upgrade to 1.12.5
-
I have a CI server with Ubuntu and Node 10.20.0 installed. Previously I was able to run a ‘npm install’ on my 1.9.14 Quasar project, but after upgrading to Quasar 1.12.5 (app 1.9.6, extras 1.8.2), I get an error with NPM. Do you know why this is happening? Was some requirement / dependency changed?
+ node -v v10.20.0 + npm install npm ERR! Cannot read property 'resolve' of undefined
and here is the npm log output:
15657 silly saveTree ├─┬ vuedraggable@2.23.2 15657 silly saveTree │ └── sortablejs@1.10.1 15657 silly saveTree └── vuelidate@0.7.4 15658 verbose stack TypeError: Cannot read property 'resolve' of undefined 15658 verbose stack at regFetch (/usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js:88:23) 15658 verbose stack at fromManifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/tarball.js:55:3) 15658 verbose stack at mani.then.mani (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/tarball.js:38:25) 15658 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23) 15658 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31) 15658 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18) 15658 verbose stack at Promise._settlePromiseCtx (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:611:10) 15658 verbose stack at _drainQueueStep (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:142:12) 15658 verbose stack at _drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9) 15658 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:147:5) 15658 verbose stack at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14) 15658 verbose stack at runCallback (timers.js:705:18) 15658 verbose stack at tryOnImmediate (timers.js:676:5) 15658 verbose stack at processImmediate (timers.js:658:5) 15659 verbose cwd /home/ubuntu/jenkins/workspace/bvspark2ui 15660 verbose Linux 3.13.0-62-generic 15661 verbose argv "/usr/local/bin/node" "/usr/bin/npm" "install" 15662 verbose node v10.20.0 15663 verbose npm v6.14.4 15664 error Cannot read property 'resolve' of undefined
-
Just to follow up from discord chat:
I am using npm as the package manager on my ubuntu build machine and it failed install. On Windows 10 and Mac OS, it works.As per advise, I’ve change from npm to yarn and now it successfully downloads dependencies
https://discord.com/channels/415874313728688138/599146158828421140/725085047941628024
-
packages installed globally should still be installed with npm.