New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from 0.10.0 to 0.11.0 #1169
Comments
@ctuxboy What does your terminal say if you try querying npm for the latest version info? npm info @11ty/eleventy version
# "0.11.0" for me locally on macOS Or does it work if you try and force latest version using something like: [sudo] npm i @11ty/eleventy@latest -S (or |
@pdehaan thanks a lot for your help! When typing this command: I don't know why the 'default' command not works :/ btw, working on a linux container on my Qnap NAS :) |
Hmm—this might be the weird exception for pre-1.0 semvers. We’re going to 1.0 next to avoid this in the future (among other things). |
|
@ctuxboy What about if you try deleting your local package-lock.json file and try reinstalling Eleventy. You could also try creating a new project and |
See results in screenshot below: After the reinstall cheking the version: Okay, now installed a test-project: It installed the wrong 11ty version on both projects :( PS: the only differents developing on a NAS with linux container, working remote in my LAN, login via ssh for access the linux container (example: ssh user@192.168.0.227) |
One other weird idea, but looking at your usage above, I’m wondering if you have an older version of Eleventy installed globally (or maybe your PATH magically includes ./node_modules/.bin/. Does eleventy —-version and ./node_modules/.bin/eleventy —-version return the same thing? UPDATE: OK, you should be able to see if eleventy is installed globally using npm ls -g --depth=0. Also, just to confirm that you aren't using some weird custom npm registry which might not have the latest version yet: npm config get registry
# https://registry.npmjs.org/ |
Are you using npx to run it? This would guarantee to use the local project version. Just running eleventy may use a global version |
In the beginning installing 11ty 6 months ago installed globally and also locally, so if i understand, i want to remove the globally version? |
Good tip! I din't know the differents about npm vs npx, thanks for the clarification. |
Okay, uninstall eleventy globally: After that, trying installing locally: Trying with npm (@zachleat this issues was the reason why i expermenting in the past for installing eleventy with globally/locally, npx/npm) Following this release notes: https://github.com/11ty/eleventy/releases/tag/v0.11.0 |
A locally installed eleventy would be called via |
I had same issue on macOS trying to update local copy of Eleventy from v10 to v11.
|
@ctuxboy Yeah, I think the You'd need to probably do one of the following: eleventy --version
# "zsh: command not found: eleventy" (because I don't have it installed globally)
npx eleventy --version
# "0.11.0" (because I _DO_ have it installed locally)
$(npm bin)/eleventy --version
# "0.11.0" (where `$(npm bin)` is a shortcut for "./node_modules/.bin")
./node_modules/.bin/eleventy --version
# "0.11.0" Personally, I prefer just putting "build" and "serve" scripts in my package.json file, like this: "scripts": {
"build": "eleventy",
"serve": "eleventy --serve",
...
} And then I can just run npm run build from the Terminal and I know that npm will find the |
Hi guys, Happy that latest version installed correctly! @pdehaan thanks for the tip about the 'scripts' in package.json, adding the snippet, works really well with build and serve, and more comfortable :) (sorry for my poor english!) |
Okay, so it looks like, the local installation already works.
|
Interesting, it looks like you were successfully installing v0.11.0 a couple days ago, per your screenshot in #1169 (comment), I just don't think we noticed the local-vs-global install issue yet: |
Then, that means, you no longer have a global installation! 🎉 But perhaps, you'd want to have the ability to use the CLI without relying on npx. PATH=$HOME/webapps/innood/node_modules/.bin:$PATH Close the terminal and open a new one. |
This seems resolved—I really appreciate all y’all helping here! ❤️ |
Sorry for the delay. |
It's very strange, but when trying updating 11ty in the project-dir:
$sudo npm update @11ty/eleventy
$eleventy --version
0.10.0
After that trying globally
$sudo npm update @11ty/eleventy -g
$eleventy --version
0.10.0
This is a snippet from package.json:
...
...
Hope someone knows what i'm doing wrong?
The text was updated successfully, but these errors were encountered: