Unable to create meteor Application- Meteor create *anything* gives an error

I’m using Windows 7. Been facing this error for last 2 weeks. Can someone please help me!

C:\Users\tarun.kothari>meteor create sampleapp
C:\Users\tarun.kothari\AppData\Local.meteor\packages\meteor-tool\1.5.2_2\mt-os.
windows.x86_32\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^

TypeError: Cannot read property ‘length’ of undefined
at new PV (C:\Users\tarun.kothari\AppData\Local.meteor\packages\meteor-tool
\1.5.2_2\mt-os.windows.x86_32\packages\package-version-parser\package-version-pa
rser.js:101:22)
at Function.PV.parse (C:\Users\tarun.kothari\AppData\Local.meteor\packages
meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-version-parser\package
-version-parser.js:111:10)
at Function.PV.getValidServerVersion (C:\Users\tarun.kothari\AppData\Local.
meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-versio
n-parser\package-version-parser.js:291:13)
at parseSimpleConstraint (C:\Users\tarun.kothari\AppData\Local.meteor\packa
ges\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-version-parser\pac
kage-version-parser.js:278:8)
at C:\Users\tarun.kothari\AppData\Local.meteor\packages\meteor-tool\1.5.2_2
\mt-os.windows.x86_32\packages\package-version-parser\package-version-parser.js:
311:14
at Array.map (native)
at new PV.VersionConstraint (C:\Users\tarun.kothari\AppData\Local.meteor\pa
ckages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-version-parser
package-version-parser.js:306:26)
at Function.PV.parseVersionConstraint (C:\Users\tarun.kothari\AppData\Local
.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-versi
on-parser\package-version-parser.js:320:10)
at new PV.PackageConstraint (C:\Users\tarun.kothari\AppData\Local.meteor\pa
ckages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-version-parser
package-version-parser.js:364:28)
at Function.PV.parsePackageConstraint (C:\Users\tarun.kothari\AppData\Local
.meteor\packages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\packages\package-versi
on-parser\package-version-parser.js:390:10)
at Object.exports.parsePackageConstraint (C:\tools\utils\utils.js:234:33)
at C:\tools\project-context.js:955:37
at Array.forEach (native)
at Function..each..forEach (C:\Users\tarun.kothari\AppData\Local.meteor\p
ackages\meteor-tool\1.5.2_2\mt-os.windows.x86_32\dev_bundle\lib\node_modules\und
erscore\underscore.js:79:11)
at [object Object]..extend.readFile (C:\tools\project-context.js:932:7)
at new exports.ProjectConstraintsFile (C:\tools\project-context.js:898:8)
at C:\tools\project-context.js:326:37
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.readProjectMetadata (C:\tools\project-context.js:311:18)
at C:\tools\project-context.js:285: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:275:18)
at ProjectContext.
.extend.readProjectMetadata (C:\tools\project-context.js:
236:10)
at C:\tools\cli\commands.js:723:20
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 Object.main.captureAndExit (C:\tools\cli\main.js:273:29)
at Command.func (C:\tools\cli\commands.js:722:8)
at C:\tools\cli\main.js:1483:23

@tarunh, Note your computer output is easier to read if you put your code in fixed width format. see quoting code

Try a reinstall…

  1. go to C:\Users\tarun.kothari\AppData\Local.meteor\packages\meteor-tool
  2. delete the 1.5.2_2 directory completely.
  3. enter meteor --help --release 1.5.2.2. This will download a new dev_bundle. Let it run; does the windows Antimalware job use a lot of CPU? This is your antivirus examining each file as it is copied. Sometimes this can mess up the install, but usually it is OK and worth running. Recommend disabling anti-virus for your meteor development directories.
  4. now try to create a project.

Thanks Brucejo for the reply.

  1. When I delete the directory completely and run the command Windows CL gives me an error, path not found. None of the Meteor commands works.
  2. So I deleted the entire folder, reinstalled Meteor, disabled Anti virus and ran command
    meteor update --release 1.5.2.2 without deleting the 1.5.2_2 directory.
  3. Getting the same error.

I also tried updating to a lower version like 1.5 or 1.4.4 but Command line keeps switching between Downloading and extracting. Unable to update.

I googled with some error keywords from the top, and found no good solution but with this,

meteor “underscore.js:79”

https://github.com/meteor/meteor/issues/7721

(from replies: )

  1. Same issue here. meteor reset resolves.
  2. If you’re in a situation like me where you are working on an application where you cannot update meteor, you can delete meteor/local/resolver-result-cache.json - this forces Meteor to re-cache the packages available.

=> absolutely not sure, but these two replies seem simple solutions you can try. (but… 2. is not so relevant)
I don’t know anything, but my guess:
some crash -> cannot parse json or something, not right package …

=> maybe this would not solve. you may need to do more crazy googling with more keywords and reasoning.

--------- FYI, same or similar cases(very rare), but no answer:

https://stackoverflow.com/questions/46591302/meteorjs-installation-issue-in-windows

https://github.com/practicalmeteor/meteor-mocha/issues/85


https://github.com/meteor/meteor/issues/8801
: thread shows that various causes are possible on windows