Unable to run ionic command from NodeJS command prompt

Good day. I am fresher to ionic framework and request to forgive my mistakes to understand basics of ionic framework related. I need help from ionic community to overcome obstacles and move forward.

Following instructions from https://ionicframework.com/docs/intro/installation/ I had completed installation of NodeJS Installer. Current npm --version returns 2.15.10 and node --version returns v8.10.0

Later I installed $ npm install -g ionic cordova

Further when I tried
$ ionic start helloWorld blank I am getting error
’$’ is not recognized as an internal or external command,
operable program or batch file.

My laptop is Windows 10 64bit and I tried even ionic start helloWorld blank and received error
’ionic’ is not recognized as an internal or external command,
operable program or batch file.

Looks like configuration problem and looking for help from Ionic community.

Best Regards

V. Upendra Rao

$ is just used to denote the command, it shouldn’t be used in the command. You should run:

npm install -g ionic cordova

and

ionic start helloWorld blank

Thanks for quick reply. I executed from Nodejs command prompt npm install -g ionic cordova and tried to run
C:\Windows\System32>ionic start helloWorld blank
’ionic’ is not recognized as an internal or external command,
operable program or batch file.

From https://nodejs.org/en/ I downloaded 8.10.0 LTS (Download for Windows x64 most Recommended to most users). Also I noticed another download version 9.8.0 Current (Latest Features).

Shall I reinstall with 9.8.0 version or any other remedy to fix.

Your early reply is much appreciated.

Further I tried to reinstall with NodeJS latest version 9.8.0 and tried to run ionic start helloWorld blank. Still error
C:\Windows\System32>ionic start helloWorld blank
’ionic’ is not recognized as an internal or external command,
operable program or batch file. is coming and unable to run ionic start command.

Looking for support to resolve this problem.

Here is list of console messages that were shown during installation

C:\Windows\System32>npm install -g ionic cordova
npm WARN package.json taco-toolset@6.3.1 No description
npm WARN package.json taco-toolset@6.3.1 No repository field.
npm WARN package.json taco-toolset@6.3.1 No README data
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
npm WARN optional dep failed, continuing fsevents@1.1.3
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:5508) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\ionic -> C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\node_modules\ionic\bin\ionic
C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\cordova -> C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\node_modules\cordova\bin\cordova
ionic@3.20.0 C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\node_modules\ionic
├── semver@5.5.0
├── tslib@1.9.0
├── opn@5.3.0 (is-wsl@1.1.0)
├── chalk@2.3.2 (escape-string-regexp@1.0.5, supports-color@5.3.0, ansi-styles@3.2.1)
├── @ionic/cli-framework@0.1.3 (strip-ansi@4.0.0, ncp@2.0.0, rimraf@2.6.2, superagent@3.8.2)
└── @ionic/cli-utils@1.19.2 (untildify@3.0.2, dargs@5.1.0, ci-info@1.1.3, basic-auth@1.1.0, ssh-config@1.1.3, slice-ansi@1.0.0, minimist@1.2.0, os-name@2.0.1, uuid@3.2.1, @ionic/discover@0.4.0, string-width@2.1.1, wrap-ansi@3.0.1, diff@3.5.0, elementtree@0.1.7, ws@3.3.3, cross-spawn@5.1.0, body-parser@1.18.2, leek@0.0.24, express@4.16.3, tar@4.4.0, inquirer@3.3.0, superagent@3.8.2, archiver@2.1.1, tiny-lr@1.1.1, http-proxy-middleware@0.17.4, chokidar@1.7.0, lodash@4.17.5)

cordova@6.3.1 C:\ProgramData\Microsoft\VisualStudio\MDA\72ec1627\taco-toolset-6.3.1\node_modules\cordova
├── underscore@1.7.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.1.1)
├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, string-length@1.0.1, chalk@1.1.3, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1)
├── insight@0.8.4 (object-assign@4.1.1, async@1.5.2, lodash.debounce@3.1.1, uuid@3.2.1, chalk@1.1.3, tough-cookie@2.3.4, os-name@1.0.3, configstore@1.4.0, request@2.85.0, inquirer@0.10.1)
├── cordova-common@1.4.1 (cordova-registry-mapper@1.1.15, unorm@1.4.1, underscore@1.8.3, q@1.5.1, semver@5.5.0, ansi@0.3.1, osenv@0.1.5, bplist-parser@0.1.1, minimatch@3.0.4, elementtree@0.1.7, glob@5.0.15, shelljs@0.5.3, plist@1.2.0)
└── cordova-lib@6.3.1 (valid-identifier@0.0.1, cordova-registry-mapper@1.1.15, unorm@1.3.3, opener@1.4.1, properties-parser@0.2.3, semver@4.3.6, nopt@3.0.6, dep-graph@1.1.0, shelljs@0.3.0, glob@5.0.15, xcode@0.8.9, elementtree@0.1.6, init-package-json@1.10.3, request@2.47.0, cordova-serve@1.0.1, aliasify@1.9.0, tar@1.0.2, cordova-fetch@1.0.2, cordova-app-hello-world@3.10.0, plist@1.2.0, cordova-js@4.1.4, npm@2.15.12)

C:\Windows\System32>ionic start helloWorld blank
’ionic’ is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\System32>