You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Whenever calling "npm install" or "yarn add" without any arguments (hence installing all dependencies) no output is emitted on stdout
27
+
// Luckily, whenever you call "npm install" or "yarn add" to install all dependencies chances are you won't need the name/version of the package you're installing because there is none.
Copy file name to clipboardExpand all lines: lib/definitions/pacote-service.d.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ declare global {
9
9
* @param packageName The name of the package
10
10
* @param options The provided options can control which properties from package.json file will be returned. In case when fullMetadata option is provided, all data from package.json file will be returned.
// Whenever calling npm install without any arguments (hence installing all dependencies) no output is emitted on stdout
62
-
// Luckily, whenever you call npm install to install all dependencies chances are you won't need the name/version of the package you're installing because there is none.
// After the actual install runs successfully execute a dry-run in order to get information about the package.
69
-
// We cannot use the actual install with --json to get the information because of post-install scripts which may print on stdout
70
-
// dry-run install is quite fast when the dependencies are already installed even for many dependencies (e.g. angular) so we can live with this approach
71
-
// We need the --prefix here because without it no output is emitted on stdout because all the dependencies are already installed.
// In case `tns create myapp --template https://github.com/NativeScript/template-hello-world.git` command is executed, pacote module throws an error if cache option is not provided.
0 commit comments