TypeError: Cannot read property 'npm' of undefined
See original GitHub issueHi, 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:
- Created 7 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Thanks a lot for your help, this should be improved in 0.10.0.