oortcloud / meteorite

Installer & smart package manager for Meteor

Home Page:http://oortcloud.github.com/meteorite/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: Package name invalid

gdiab opened this issue · comments

when running mrt, I now get this error:
/usr/local/lib/node_modules/meteorite/lib/command.js:57
throw "Command exited: " + error;
^
Command exited: Error: Command failed: => Errors while scanning packages:

While reading package from /Users/georgediab/openfloor/packages/GAnalytics:
error: Package name invalid: GAnalytics

Perhaps package name has to be all lowercase now?

Hmm, I believe so.

I have the same issue, is there a work around for this?

You'll need to not use packages with capitals in names. If you are using Meteorite you can easily enough just specify them without capitals.

I am using meteorite to install iron-router $>sudo mrt install iron-router
and the GAnalytics that comes with it breaks...

I try both to remove and reinstall with lowercase but it's not working...
here's the error

/usr/local/lib/node_modules/meteorite/lib/meteor.js:145

      throw error;

            ^

Error: Command failed: => Errors while scanning packages:

While reading package from
/Users/huyvlam/myProjects/Orcasense/websiteApp/packages/GAnalytics:

error: Package names can only contain lowercase ASCII alphanumerics, dash,
dot, or colon, not "G".

Hi.

  1. AFAIK, iron-router does not and never did come with that package.
  2. Is there a reason you aren't using meteor add iron:router? The mrt iron-router package is deprecated.

This is what I installed... trying to remove it now to install what you suggested but I can't even remove


$ sudo mrt add iron-router
Password:
smart.json changed.. installing from smart.json
✓ GAnalytics
tag: https://github.com/datariot/meteor-ganalytics.git#v0.2.0
✓ iron-router
tag: https://github.com/EventedMind/iron-router.git#v0.8.2
✓ iron-layout
tag: https://github.com/EventedMind/iron-layout.git#v0.2.0
✓ blaze-layout
tag: https://github.com/EventedMind/blaze-layout.git#v0.2.5
✓ iron-core
tag: https://github.com/EventedMind/iron-core.git#v0.2.0
✓ iron-dynamic-template
tag: https://github.com/EventedMind/iron-dynamic-template.git#v0.2.1

Done installing smart packages

/usr/local/lib/node_modules/meteorite/lib/meteor.js:145
throw error;
^
Error: Command failed: => Errors while scanning packages:

While reading package from /Users/huyvlam/myProjects/Orcasense/websiteApp/packages/GAnalytics:
error: Package names can only contain lowercase ASCII alphanumerics, dash, dot, or colon, not "G".

at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)

Huys-MacBook-Pro:websiteApp huyvlam$ sudo meteor list
=> Errors while scanning packages:

While reading package from /Users/huyvlam/myProjects/Orcasense/websiteApp/packages/GAnalytics:
error: Package names can only contain lowercase ASCII alphanumerics, dash, dot, or colon, not "G".

@huyvlam you didn't really answer question 2. What's in your smart.json?

There was no particular reason... that was just what I found from search

@huyvlam if you don't have any particular reason, don't use Meteorite (it's deprecated). Just remove smart.json/lock and packages/ and use meteor add iron:router.

{
"packages": {
"GAnalytics": {},
"iron-router": {}
}
}

Got it fixed... thank you