npm install error for jsreport



  • Hi,
    I am trying to install jsreport 1.9.2 and its giving me errors:cannot read property match of undefined.

    Pl advise,
    Rashmi

    17 silly saveTree   `-- jsreport-xlsx@1.4.2
    17 silly saveTree     +-- archiver@2.0.0
    17 silly saveTree     +-- bluebird@3.5.0
    17 silly saveTree     +-- file-type@5.2.0
    17 silly saveTree     +-- get-stream@3.0.0
    17 silly saveTree     +-- merge2@1.1.0
    17 silly saveTree     +-- pify@3.0.0
    17 silly saveTree     `-- yauzl@2.8.0
    17 silly saveTree       `-- fd-slicer@1.0.1
    18 verbose stack TypeError: Cannot read property 'match' of undefined
    18 verbose stack     at tarballToVersion (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\lib\install\inflate-shrinkwrap.js:87:20)
    18 verbose stack     at inflatableChild (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\lib\install\inflate-shrinkwrap.js:99:22)
    18 verbose stack     at BB.each (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\lib\install\inflate-shrinkwrap.js:55:12)
    18 verbose stack     at tryCatcher (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
    18 verbose stack     at Object.gotValue (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\reduce.js:155:18)
    18 verbose stack     at Object.gotAccum (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\reduce.js:144:25)
    18 verbose stack     at Object.tryCatcher (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
    18 verbose stack     at Promise._settlePromiseFromHandler (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
    18 verbose stack     at Promise._settlePromise (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
    18 verbose stack     at Promise._settlePromiseCtx (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:606:10)
    18 verbose stack     at Async._drainQueue (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:138:12)
    18 verbose stack     at Async._drainQueues (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
    18 verbose stack     at Immediate.Async.drainQueues (C:\Users\rashmi.maheshwari\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
    18 verbose stack     at runCallback (timers.js:810:20)
    18 verbose stack     at tryOnImmediate (timers.js:768:5)
    18 verbose stack     at processImmediate [as _immediateCallback] (timers.js:745:5)
    19 verbose cwd C:\ifolder\iroot\jsReport
    20 verbose Windows_NT 10.0.10586
    21 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\rashmi.maheshwari\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
    22 verbose node v8.11.2
    23 verbose npm  v6.1.0
    24 error Cannot read property 'match' of undefined
    25 verbose exit [ 1, true ]
    


  • This seems like a rarely ocuring issue in npm itself
    https://github.com/npm/npm/issues/20143\

    I am not able to replicate it, but please try to run

    npm cache clean -f
    

    And try installation again in empty folder. Or remove everything you have in your current app folder if there is nothing you need to persist.



  • Somehow just cleaning the cache is not enough, need to remove package-lock.json and then it installed nicely.
    Thank you Jan.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.