Meteor repository behind artifactory

Hi,
I’m very very new to Meteor (just started yesterday). I try to run meteor build and I get the following error.

# meteor build --directory /build --architecture os.linux.x86_64

Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app directory will be incorrect if you ever attempt to perform any Meteor tasks as a normal user. If you need to fix your permissions, run the following command
from the root of your project:

  sudo chown -Rh <username> .meteor/local

=> Errors while initializing project:

While selecting package versions:
error: Package version not in catalog: accounts-base 2.2.10

While refreshing package catalog to resolve previous errors:
error: Can't establish a connection to the server at wss://packages.meteor.com/websocket

The error is fine as my server doesn’t have an internet connection. For this reason I’ve setup a remote repository in artifcatory for https://packages.meteor.com.

Could some please help me with the information on how I can replace the packages.meteor.com with artifactory/artifactory/meteor-remote-repo

Hi, you can use the EV METEOR_PACKAGE_SERVER_URL to set a different URL from packages.meteor.com.

Hello Denhys,
Thanks for your input. I tried this already and I get an error. Sorry I should I’ve mentioned it in my post.

$ meteor --version
Meteor 2.16
$ export METEOR_PACKAGE_SERVER_URL='http://artifactory/meteor-remote-repo/'
$ meteor --version
/home/vagrant/.meteor/packages/meteor-tool/.2.16.0.3vipvb.sgul9++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
      throw error;
      ^

Error: Can't get default release version for track undefined
    at RemoteCatalog.getDefaultReleaseVersion (/tools/packaging/catalog/catalog-remote.js:848:13)
    at Object.release.latestKnown (/tools/packaging/release.js:199:41)
    at /tools/cli/main.js:986:29

Could you please let me know what could be going wrong ?