Skip to content

Commit 6be9804

Browse files
authored
Add instructions to uninstall local npm modules (#208)
1 parent 0e40058 commit 6be9804

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,19 @@ cd <directory of your React Native app>
186186
npm install <root directory of your BabylonReactNative clone>/Package/Assembled/babylonjs-react-native-0.0.1.tgz
187187
```
188188

189+
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:
190+
191+
```
192+
cd Apps\PackageTest\<package test app version>
193+
194+
npm uninstall @babylon/react-native
195+
196+
# If you're also updating the react-native-windows package:
197+
npm uninstall @bablyon/react-native-windows
198+
```
199+
200+
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`.
201+
189202
### **Debugging in Context**
190203

191204
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
209222

210223
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:
211224

212-
`npm install -g [email protected]`
225+
`npm install -g [email protected]`

0 commit comments

Comments
 (0)