From 3b6a93409859806d57b1d81ccb54541006131491 Mon Sep 17 00:00:00 2001 From: rgerd Date: Tue, 27 Apr 2021 10:23:20 -0700 Subject: [PATCH] Add instructions to uninstall local npm modules --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 410cac9dc..0572453f6 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,19 @@ cd npm install /Package/Assembled/babylonjs-react-native-0.0.1.tgz ``` +If you wish to test the locally-built NPM packages with the apps in the `PackageTest` directory, before running `npm install` be sure to run: + +``` +cd Apps\PackageTest\ + +npm uninstall @babylon/react-native + +# If you're also updating the react-native-windows package: +npm uninstall @bablyon/react-native-windows +``` + +This will allow the local package dependencies to update without the package-lock.json file worrying about new content without a new version number. You can then run the above command to install the locally-built NPM modules located in `Package/Assembled`. + ### **Debugging in Context** If you want to consume `@babylonjs/react-native` as source in your React Native app (for debugging or for iterating on the code when making a contribution), you can install the package source directory as an npm package. @@ -209,4 +222,4 @@ If you believe you have found a security vulnerability in this repository, pleas We have seen issues when using npm 7+ to install local symbolic linked npm packages. For this reason, we suggest using npm 6.13 for BabylonReactNative development. To install npm 6.13, run the following command: -`npm install -g npm@6.13` \ No newline at end of file +`npm install -g npm@6.13`