diff --git a/docs/man_pages/general/package-manager-get.md b/docs/man_pages/general/package-manager-get.md index 9a73a20eca..103e923d05 100644 --- a/docs/man_pages/general/package-manager-get.md +++ b/docs/man_pages/general/package-manager-get.md @@ -22,4 +22,5 @@ General | `$ tns package-manager get` Command | Description ----------|---------- [package-manager-set](package-manager-set.html) | Enables the specified package manager for the NativeScript CLI. Supported values are npm, yarn and pnpm. +[package-manager-get](package-manager-get.html) | Prints the value of the current package manager. <% } %> \ No newline at end of file diff --git a/docs/man_pages/general/package-manager-set.md b/docs/man_pages/general/package-manager-set.md index e30988b9af..aa745b54d6 100644 --- a/docs/man_pages/general/package-manager-set.md +++ b/docs/man_pages/general/package-manager-set.md @@ -7,7 +7,7 @@ position: 18 ### Description -Enables the specified package manager for the NativeScript CLI. Supported values are npm and yarn. +Enables the specified package manager for the NativeScript CLI. Supported values are npm, yarn and pnpm. ### Commands diff --git a/docs/man_pages/start.md b/docs/man_pages/start.md index 50996a387f..d719cbfff2 100644 --- a/docs/man_pages/start.md +++ b/docs/man_pages/start.md @@ -23,6 +23,7 @@ Command | Description [proxy](general/proxy.html) | Displays proxy settings. [migrate](general/migrate.html) | Migrates the app dependencies to a form compatible with NativeScript 6.0. [update](general/update.html) | Updates the project with the latest versions of iOS/Android runtimes and cross-platform modules. +[package-manager](general/package-manager.html) | Prints the value of the current package manager. ## Project Development Commands Command | Description diff --git a/lib/common/commands/package-manager-set.ts b/lib/common/commands/package-manager-set.ts index 2025940c7d..ad302de109 100644 --- a/lib/common/commands/package-manager-set.ts +++ b/lib/common/commands/package-manager-set.ts @@ -18,6 +18,7 @@ export class PackageManagerCommand implements ICommand { await this.$userSettingsService.saveSetting("packageManager", packageManagerName); + this.$logger.printMarkdown(`Please ensure you have the directory containing \`${packageManagerName}\` executable available in your PATH.`); this.$logger.printMarkdown(`You've successfully set \`${packageManagerName}\` as your package manager.`); } }