Comments (10)
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.
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.
I've contacted npm about this because I have no idea what is happening.
from express-locale.
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 PSTHello 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.
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.
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.
I'm really not sure why, but I still get the same results on 1.0.1 – Sorry for the headache!
from express-locale.
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.
Okay, yes, that's done it, sorry – I thought I had tried this. Thanks again :)
from express-locale.
No problem. Thanks for following up on this! Happy you found out about it.
from express-locale.
Related Issues (16)
- Parse short codes HOT 2
- Add support for debug HOT 2
- Add option to limit accepted locales HOT 2
- It becomes default value when receiving accept-language without Locale HOT 5
- Setting allowed breaks to undefined HOT 2
- add config sanity checks HOT 1
- Date.toLocaleString (native) - RangeError: Invalid language tag: en_US HOT 3
- Invalid locale hard coded 'en_UK'; HOT 1
- Unclear interaction between `map` and `allowed` HOT 3
- The map parameter shows no effect HOT 1
- Always defaults HOT 3
- figure out missing region information HOT 5
- 1.0.0 roadmap HOT 2
- allow for setting language not based on region HOT 3
- Error: Cannot find module 'babel-polyfill' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-locale.