Server will not run: no such file field.js?

I was working as usual on our work project (in WebStorm IDE), and as I was working, my computer froze.

Now after restart, I try running our app and I get the following error:

C:\Users\N\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:190
      throw error;
      ^

Error: ENOENT: no such file or directory, open 'C:\Users\N\AppData\Local\.meteor\packages\useraccounts_core\1.14.2\os\lib\field.js'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.wrapper [as open] (C:\tools\fs\files.js:1586:35)
    at Object.files.readBufferWithLengthAndOffset (C:\tools\fs\files.js:1792:20)
    at C:\tools\isobuild\isopack.js:1001:26
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\N\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
    at C:\tools\isobuild\isopack.js:999:9
    at Array.forEach (native)
    at Function._.each._.forEach (C:\Users\N\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:79:11)
    at [object Object]._.extend._loadUnibuildsFromPath (C:\tools\isobuild\isopack.js:965:7)
    at [object Object].initFromPath (C:\tools\isobuild\isopack.js:885:17)
    at C:\tools\isobuild\isopack-cache.js:288:23
    at C:\tools\utils\buildmessage.js:359:18
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:352:34
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:350:23
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
    at C:\tools\isobuild\isopack-cache.js:274:24
    at Function.time (C:\tools\tool-env\profile.js:305:10)
    at IsopackCache._ensurePackageLoaded (C:\tools\isobuild\isopack-cache.js:264:15)
    at C:\tools\isobuild\isopack-cache.js:77:14
    at C:\tools\packaging\package-map.js:57:7
    at Function._.each._.forEach (C:\Users\N\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\underscore\underscore.js:87:22)
    at [object Object]._.extend.eachPackage (C:\tools\packaging\package-map.js:49:7)
    at IsopackCache.buildLocalPackages (C:\tools\isobuild\isopack-cache.js:76:24)
    at C:\tools\project-context.js:841:25
    at C:\tools\utils\buildmessage.js:359:18
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:352:34
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:350:23
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
    at ProjectContext._buildLocalPackages (C:\tools\project-context.js:840:18)
    at C:\tools\project-context.js:283:9
    at C:\tools\utils\buildmessage.js:359:18
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:352:34
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:350:23
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
    at ProjectContext._.extend._completeStagesThrough (C:\tools\project-context.js:273:18)
    at C:\tools\project-context.js:265:12
    at Function.run (C:\tools\tool-env\profile.js:490:12)
    at ProjectContext._.extend.prepareProjectForBuild (C:\tools\project-context.js:264:13)
    at C:\tools\runners\run-app.js:563:29
    at C:\tools\utils\buildmessage.js:271:13
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:264:29
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:262:18
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at C:\tools\utils\buildmessage.js:253:23
    at [object Object]._.extend.withValue (C:\tools\utils\fiber-helpers.js:89:14)
    at Object.capture (C:\tools\utils\buildmessage.js:252:19)
    at bundleApp (C:\tools\runners\run-app.js:562:31)
    at [object Object]._.extend._runOnce (C:\tools\runners\run-app.js:631:35)
    at [object Object]._.extend._fiber (C:\tools\runners\run-app.js:890:28)
    at C:\tools\runners\run-app.js:417:12

Not sure how to resolve, any advice would be appreciated

I noticed a message saying patch release available, so I attempted a update --patch… SAME error…

Meteor refresh does not seem to do anything either… it is a core Meteor package so I’m not able to remove and add it… Not sure what else to do but this is an extremely annoying error, and it also seems to be preventing me from doing a commit on github/vcs…

I was going to just set up a new project folder, from our github, but I have uncommitted work that I need to push, and I am not able to do that either… I’m also a bit worried to do a commit at all in this status as I do not want to possibly corrupt our repository with anything that may be causing this issue.

I noticed that useraccounts-core is supposed to be updated automtically when adding any package that relies on it, so I attempted removing the flow routing package for useraccounts to add it again… SAME ERROR WHEN I TRY TO REMOVE!!!

If I manually navigate to the folder, the 1.14.2/os folder is EMPTY!

This is ridiculous, that a core meteor package file is somehow missing & does not download & recreate itself??

This is putting me at a complete stand-still until I’m able to resolve this…

I checked our other development pc’s, and copied over the files needed. Then the same thing happened for useraccounts_flowrouting. Copied that, then the same thing happened for useraccounts_materialize.

Now after copying those over, it’s a new error:

W20171124-16:06:44.381(-8)? (STDERR) C:\Users\N\AppData\Local\.meteor\packages\meteor-tool\1.4.4_2\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20171124-16:06:44.381(-8)? (STDERR) 						throw(ex);
W20171124-16:06:44.381(-8)? (STDERR) 						^
W20171124-16:06:44.381(-8)? (STDERR) Error: Match error: Unknown key in field defaultLayoutRegions
W20171124-16:06:44.382(-8)? (STDERR)     at exports.check (packages\check.js:57:15)
W20171124-16:06:44.382(-8)? (STDERR)     at [object Object].AT.configure (packages\useraccounts_core.js:792:3)
W20171124-16:06:44.382(-8)? (STDERR)     at meteorInstall.lib.accounts_config.config.js (lib/accounts_config/config.js:28:19)
W20171124-16:06:44.383(-8)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:197:9)
W20171124-16:06:44.383(-8)? (STDERR)     at require (packages\modules-runtime.js:120:16)

Not sure why it’s giving this error, configuration is extremely basic/default:

AccountsTemplates.configure({
    defaultLayout: 'layout',
    defaultLayoutRegions: {},
    defaultContentRegion: 'main',

    forbidClientAccountCreation: true,
    enablePasswordChange: true,
    showForgotPasswordLink: true
});

According to the error, the check is looking for an object, and the regions is an object, so I’m not sure what’s going on, especailly considering everything 100% works on the other development PC’s

I’m extremely frustrated at this point and upset that the entire day is wasted & I am going to have to spend overtime because I need to commit and push to github and deploy this update to our server BEFORE WEEKEND…

just do a manual meteor reset by deleting the .meteor/local folder. Meteor will then re-install the packages it needs which should fix it