New meteor installer
Hello, everyone!! We are changing the Meteor install method to use NPM. We started with Windows, and we now have a new beta supporting Linux and Mac.
If you can give it a shot, please do and report any issues you find to us!
How to:
If you have Meteor currently installed and you are on linux/mac: move ~/.meteor to ~/.meteor-backup and remove the launcher script with “rm `which meteor`”
If you have Meteor on Windows with the npm “meteor” package: uninstall and remove remove the global “meteor” package by running “meteor-installer uninstall” and npm uninstall -g meteor
Hi @rechdan, as with the current installer, we will always install the latest meteor tool, but you can use an older version any time. It can be done by changing the release file of your project or creating a project with the version you want.
Example:
meteor create test-webapp --release 2.1
or, inside a project:
meteor update --release 1.11
In this way, you will always be able to use older versions.
➜ ~ npm install -g meteor
npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/meteor
npm ERR! command failed
npm ERR! command sh -c node cli.js install
npm ERR! The current architecture is not supported: arm64
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/theara/.npm/_logs/2021-09-01T02_53_50_435Z-debug.log
Hi!
The best way to use the npm installer is to set a new user and use it instead of the root user.
Something like this, at the end of your dockerfile should work!
RUN useradd -ms /bin/bash newuser
RUN chown -R newuser /usr/local/lib/node_modules
RUN chown -R newuser /usr/local/bin
USER newuser
WORKDIR /home/newuser