No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    npm install error after upgrade to 1.12.5

    Help
    2
    3
    126
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      steve last edited by

      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
      1 Reply Last reply Reply Quote 0
      • S
        steve last edited by

        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

        1 Reply Last reply Reply Quote 0
        • dobbel
          dobbel last edited by

          packages installed globally should still be installed with npm.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post