A library for installing and finding packages in a node project
Install @expo/package-manager
in your project.
yarn add @expo/package-manager
import * as PackageManager from '@expo/package-manager';
const manager = await PackageManager.createForProject(projectRoot);
await Promise.all([
manager.addDevAsync('@expo/webpack-config'),
manager.addAsync('expo', 'expo-camera'),
]);
The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.