abernix / spaceglue

Other
26 stars 8 forks source link

readFilesync of undefined when building Meteor docker image on Jenkins #4

Closed sishengz closed 7 years ago

sishengz commented 7 years ago

Docker Version: 1.6.0 Jenkins Version: 2.19.3

When building our docker image on Jenkins, we get the following error.

[91minfo�[0m�[91m �[0m�[91merror reading version TypeError: Cannot read property 'readFileSync' of undefined �[0m�[91minfo error reading version at /root/.meteor/packages/meteor-tool/.1.4.1_3.8dq62w++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/node_modules/npm/lib/npm.js:42:24 �[0m�[91minfo error reading version�[0m�[91m at Object. (/root/.meteor/packages/meteor-tool/.1.4.1_3.8dq62w++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/node_modules/npm/lib/npm.js:475:3)

abernix commented 7 years ago

Does this happen with other Docker images on the same project or does it only happen with SpaceGlue?

I'll reopen if you you can't reproduce this with other Docker images. But please also see the comments I made on meteor/meteor#8171 about the same issue. This is far too vague to help you and you'll need to provide a lot more information and take some more debugging steps yourself.