我有一个Meteor应用突然无法构建。
运行“流星雨”
我现在得到以下日志
C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^
Error: couldn't read entire resource
at Object.files.readBufferWithLengthAndOffset (C:\tools\fs\files.js:1868:13)
at C:\tools\isobuild\unibuild.js:122:26
at Array.forEach (<anonymous>)
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at Function.fromJSON (C:\tools\isobuild\unibuild.js:119:7)
at C:\tools\isobuild\isopack.js:921:33
at Array.forEach (<anonymous>)
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at Isopack._loadUnibuildsFromPath (C:\tools\isobuild\isopack.js:908:7)
at Isopack.initFromPath (C:\tools\isobuild\isopack.js:828:17)
at C:\tools\isobuild\isopack-cache.js:280:23
at Object.enterJob (C:\tools\utils\buildmessage.js:388:12)
at Profile.time (C:\tools\isobuild\isopack-cache.js:266:24)
at Function.time (C:\tools\tool-env\profile.js:305:10)
at IsopackCache._ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:256:15)
at ensureLoaded (C:\tools\isobuild\isopack-cache.js:207:12)
at C:\tools\isobuild\isopack-cache.js:299:9
at Array.forEach (<anonymous>)
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at IsopackCache._ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:298:9)
at ensureLoaded (C:\tools\isobuild\isopack-cache.js:207:12)
at C:\tools\isobuild\isopack-cache.js:299:9
at Array.forEach (<anonymous>)
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at IsopackCache._ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:298:9)
at ensureLoaded (C:\tools\isobuild\isopack-cache.js:207:12)
at C:\tools\isobuild\isopack-cache.js:299:9
at Array.forEach (<anonymous>)
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
at IsopackCache._ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:298:9)
at C:\tools\isobuild\isopack-cache.js:75:14
at C:\tools\packaging\package-map.js:57:7
at Function._.each._.forEach (C:\Users\USER\AppData\Local\.meteor\packages\meteor-tool\1.8.0_2\mt-os.windows.x86_64\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
at exports.PackageMap.eachPackage (C:\tools\packaging\package-map.js:49:7)
at IsopackCache.buildLocalPackages (C:\tools\isobuild\isopack-cache.js:74:24)
at C:\tools\project-context.js:869:25
at Object.enterJob (C:\tools\utils\buildmessage.js:388:12)
at ProjectContext._buildLocalPackages (C:\tools\project-context.js:868:18)
at C:\tools\project-context.js:300:9
at Object.enterJob (C:\tools\utils\buildmessage.js:388:12)
at ProjectContext._completeStagesThrough (C:\tools\project-context.js:290:18)
at Profile.run (C:\tools\project-context.js:282:12)
at Function.run (C:\tools\tool-env\profile.js:490:12)
at ProjectContext.prepareProjectForBuild (C:\tools\project-context.js:281:13)
at C:\tools\runners\run-app.js:544:29
at Object.capture (C:\tools\utils\buildmessage.js:283:5)
at bundleApp (C:\tools\runners\run-app.js:543:31)
at AppRunner._runOnce (C:\tools\runners\run-app.js:610:35)
at AppRunner._fiber (C:\tools\runners\run-app.js:908:28)
at C:\tools\runners\run-app.js:398:12
我在网上找不到太多。我重新启动计算机几次,运行
meteor reset
,甚至删除了我的项目,并将其重新克隆到该项目的新副本中,以说明任何本地更改。有人对这里发生的事情有任何想法吗?我正在运行Win 10 btw。对于其他计算机,该问题似乎对我的计算机而言是本地的。我认为重新安装Meteor / Node可以解决此问题,但我宁愿确切地了解是什么原因造成的。
答案 0 :(得分:0)
单独流星和Node并不能解决问题。卸载Meteor并没有删除.meteor文件夹。完全删除该文件夹,然后重新安装,即可使一切再次正常运行。
虽然不确定一开始到底是什么引起了该问题,但是重新启动就可以了。