Below is the error log when I tried to install the ionic version 1.4.2.
10295 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "[email protected]"
10296 verbose node v8.11.4
10297 verbose npm v5.6.0
10298 error path C:\chownr\package.json
10299 error code ENOPACKAGEJSON
10300 error errno -4058
10301 error syscall open
10302 error package.json ENOENT: no such file or directory, open 'C:\chownr\package.json'
10303 error package.json npm can't find a package.json file in your current directory.
10304 verbose exit [ -4058, true ]