diff --git a/.npmrc b/.npmrc index d747c7f48b..3b9d59d669 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,7 @@ loglevel=warn #Prevent folks from ignoring an important error when building from source -engine-strict=true \ No newline at end of file +engine-strict=true + +# Dont include lockfile +package-lock=false \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..1a2f5bd204 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* \ No newline at end of file diff --git a/README.md b/README.md index 109aa43c49..1221e19a62 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,12 @@ Building and running Open MCT in your local dev environment is very easy. Be sur `git clone https://github.com/nasa/openmct.git` -2. Install development dependencies. Note: Check the package.json engine for our tested and supported node versions. +2. (Optionally) Install the correct node version using [nvm](https://github.com/nvm-sh/nvm) (`nvm install`) +3. Install development dependencies. Note: Check the package.json engine for our tested and supported node versions. `npm install` -3. Run a local development server +4. Run a local development server `npm start` @@ -51,6 +52,8 @@ For more on developing with Open MCT, see our documentation for a guide on [Deve This is a fast moving project and we do our best to test and support the widest possible range of browsers, operating systems, and nodejs APIs. We have a published list of support available in our package.json's `browserslist` key. +The project uses `nvm` to ensure the node and npm version used, is coherent in all projects. Install nvm (non-windows), [here](https://github.com/nvm-sh/nvm) or the windows equivalent [here](https://github.com/coreybutler/nvm-windows) + If you encounter an issue with a particular browser, OS, or nodejs API, please file a [GitHub issue](https://github.com/nasa/openmct/issues/new/choose) ## Plugins diff --git a/index.html b/index.html index dce027e2a2..9233eadfbd 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no" /> -