ern add <packages..>
ern add <packages..>command is the
npm installWhen you work with a MiniApp, always use
ern addto add packages in place of
yarn) to be used by this command to add the package. This can be done by adding or updating
packageManagerfield in the
ernobject kept in the MiniApp package.json. For example, to use
npm. If this field is missing from the configuration,
yarnwill be used over
npmif it is installed on the workstation.
ern add <packages..>command performs compatibility checks before adding the package to the project.
ern addas the version to use will be retrieved from the Manifest. If you add an explicit version for a package, it will be ignored.
ern add <packages>command performs the following checks:
erninstalls the package at the version declared in the manifest.