question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'npm' of undefined

See original GitHub issue

Hi, with version 0.6.0 I run into a following issue:

[SyntaxError: Unexpected end of input]
Please raise an issue at https://github.com/JamieMason/shrinkpack/issues

    TypeError: Cannot read property 'npm' of undefined
        at Object.addPackage (C:\dev\images\node_modules\shrinkpack\src\shrinkpack.js:24:31)
        at addToShrinkpack (C:\dev\images\node_modules\shrinkpack\index.js:115:23)
        at tryCatchReject (C:\dev\images\node_modules\when\lib\makePromise.js:845:30)
        at runContinuation1 (C:\dev\images\node_modules\when\lib\makePromise.js:804:4)
        at Fulfilled.when (C:\dev\images\node_modules\when\lib\makePromise.js:592:4)
        at Pending.run (C:\dev\images\node_modules\when\lib\makePromise.js:483:13)
        at Scheduler._drain (C:\dev\images\node_modules\when\lib\Scheduler.js:62:19)
        at Scheduler.drain (C:\dev\images\node_modules\when\lib\Scheduler.js:27:9)
        at doNTCallback0 (node.js:407:9)
        at process._tickCallback (node.js:336:13)

package.json: package.json.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JamieMasoncommented, Apr 5, 2016

Thanks a lot, I’ll see if I can reproduce it and get back to you if not. Will most likely be Wednesday when I next get chance.

0reactions
JamieMasoncommented, Apr 13, 2016

Thanks a lot for your help, this should be improved in 0.10.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property of undefined running NPM install #8016
apparently, the error occurs with npm@5.3.0. Try npm install -g npm@5.2.0 and run npm install again.
Read more >
NPM Cannot read property '0' of undefined - Stack Overflow
In my case reinstalling node_modules have not fixed this issue. Problem was with one *.ts file which was missing in source codes. Do...
Read more >
npm error cannot read property 0 of undefined
I was trying to do an npm install and kept getting error saying something like “cannot read property 0 of undefined”. After some...
Read more >
Cannot read property .match of undefined - Heroku Help
Running an npm command, such as npm install or npm ci , may raise something like this: npm err TypeError: Cannot read property...
Read more >
npm install cannot read properties of null (reading 'children')
The error message means that npm is trying to read the version property of the folder's package.json file but doesn't find the file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found