From f738a24d67ffa7e9861e16b790df3084da67b172 Mon Sep 17 00:00:00 2001 From: WatchfulFox <30900245+WatchfulFox@users.noreply.github.com> Date: Wed, 13 Jan 2021 15:39:51 +0000 Subject: [PATCH] Update tutorial.html When using npm -g to install monaca cli it is not (as least in my instance) added to the path and so seems not to run. I am suggesting adding the following line to ~/.bashrc (or Mac equivalent) to ensure it runs properly after installation in the case of the cli not being recognised: export PATH="$PATH:/usr/local/lib/node_modules/monaca/bin" --- src/documents_en/v2/guide/tutorial.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/documents_en/v2/guide/tutorial.html b/src/documents_en/v2/guide/tutorial.html index 1e2e706b1..5fe80c6d6 100644 --- a/src/documents_en/v2/guide/tutorial.html +++ b/src/documents_en/v2/guide/tutorial.html @@ -40,6 +40,13 @@ you to sign up for a free Monaca account. Install node and npm, then run `npm install -g monaca` to install Monaca + +If you experience the error 'command not found', ensure that monaca is properly added to your PATH environment variable by editing ~/.bashrc (or Mac equivalent): + +export PATH="$PATH:/usr/local/lib/node_modules/monaca/bin" + +This will ensure that monaca is on your path and can be invoked from anywhere on your system. + CLI. Run `monaca login`, then create a new project with: monaca create tutorial --template onsenui-v2-js-minimum