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
Instruct user to use npx in home page #797
Conversation
This command fails on some systems: npm install -g @11ty/eleventy For instance, on Ubuntu 20.04 LTS, it fails with this error message: npm ERR! Error: EACCES: permission denied, access '/usr/local/lib' These are instructions on how to start quickly... Let's use npx the way it was intended to be used. This matches documentation in other places.
@Flimm On ubuntu, you should probably use |
Even on Ubuntu, you might be using a user account without |
Good point |
I'd advise against global installation of Node packages. Imagine, you want to use different versions in different projects? For example, on Ubuntu, you could create a directory |
Just to be clear: the current instructions on the home page do advise global installation, but the fix in this pull request does not. I agree that global installation is bad, which is why I removed that in the pull request. My pull request allows you to install different versions for different projects, without having to define an NPM run-script or add it to the |
Ooh I like this change a lot. I do wonder if these npm WARNs would be confusing to people though:
|
If you run |
Finally coming back to this one—super on board, seems like the npm stuff has been smoothed out a bit too. Here’s what I see running this now:
Those warnings are from browser-sync (and notably also happen on global installation too). Follow along for those at 11ty/eleventy#2213 |
🚢🛳⛴🚀📦 |
This command fails on some systems:
For instance, on Ubuntu 20.04 LTS, it fails with this error message:
These are instructions on how to start quickly... Let's use npx the way it was intended to be used. This matches documentation in other places.