Coder Social home page Coder Social logo

Comments (10)

smhg avatar smhg commented on June 14, 2024

It sounds like express-locale is incorrectly cached on your machine.

When I do npm i express-locale in an empty folder, lib/index.js is the proper version.
FWIW: I use npm version 3.10.9 (on node 4.6.2).

Can you do npm cache clean express-locale and reinstall? Does that fix it?

If so, it might still be related to the registry itself, as I had to e-mail them to update the page on npmjs.com. It kept showing the old version.

from express-locale.

smartmike avatar smartmike commented on June 14, 2024

I still get the same result, even when I create an empty project and install. This is node version 6.9.1, and npm version 3.10.8.

I created a fork and pushed the built files up and referenced this in my local project, which works, so I'm not sure why I'm not getting the correct build from npm!

from express-locale.

smhg avatar smhg commented on June 14, 2024

I've contacted npm about this because I have no idea what is happening.

from express-locale.

smhg avatar smhg commented on June 14, 2024

Below the feedback of npm. Could you please contact them directly and let me know what the outcome is?
It is an awkward issue that I'd like to get resolved.

Thanks!

Stephanie Snopek (npm)
Nov 28, 17:09 PST

Hello Sam,

Thanks for checking in. We'll need a bit more information to figure this out. Are they getting [email protected] when asking for express-locale@latest?

For clearer communication, I'd recommend CC'ing them to this thread, or asking them to get in touch with us directly.

Thanks so much,
Stephanie

from express-locale.

smartmike avatar smartmike commented on June 14, 2024

Hey, I can do that, can you just try these steps and see if you get the same results as me, that would be useful info to pass on.

mkdir test-express-locale && cd test-express-locale
npm init
... enter all the way through
npm i express-locale --save
cd node_modules/express-locale
cat package.json
[... expect to see "version": "1.0.0"]
cd lib/lookup
ls
[... expect to see accept-language.js cookie.js          default.js         domain.js          hostname.js]

Thanks!

from express-locale.

smhg avatar smhg commented on June 14, 2024

Ok, I found the issue.
Your steps led to the same result. I don't know why it didn't happen before.
I was using the prepublishOnly script, which is only available in npm 4. Apparently I used npm 3 to publish 1.0.0 (so no prepublishOnly and no build).
Fixed that and published 1.0.1.

Thank you for your efforts!

from express-locale.

smartmike avatar smartmike commented on June 14, 2024

I'm really not sure why, but I still get the same results on 1.0.1 – Sorry for the headache!

from express-locale.

smhg avatar smhg commented on June 14, 2024

If I perform your steps above the result is what it should be (including query.js). Both for npm 3 and 4 (after cache clean).
Does npm cache clean express-locale help this time?

from express-locale.

smartmike avatar smartmike commented on June 14, 2024

Okay, yes, that's done it, sorry – I thought I had tried this. Thanks again :)

from express-locale.

smhg avatar smhg commented on June 14, 2024

No problem. Thanks for following up on this! Happy you found out about it.

from express-locale.

Related Issues (16)

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.