Coder Social home page Coder Social logo

error: Package name invalid about meteorite HOT 11 CLOSED

gdiab avatar gdiab commented on August 13, 2024
error: Package name invalid

from meteorite.

Comments (11)

tmeasday avatar tmeasday commented on August 13, 2024

Hmm, I believe so.

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

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

from meteorite.

tmeasday avatar tmeasday commented on August 13, 2024

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.

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

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".

from meteorite.

tmeasday avatar tmeasday commented on August 13, 2024

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.

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

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".

from meteorite.

tmeasday avatar tmeasday commented on August 13, 2024

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

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

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

from meteorite.

tmeasday avatar tmeasday commented on August 13, 2024

@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.

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

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

from meteorite.

huyvlam avatar huyvlam commented on August 13, 2024

Got it fixed... thank you

from meteorite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.