Skip to content

Error Ionic path on Windows #19902

@allancmello

Description

@allancmello

Bug Report

Ionic does not see the installation path determined by windows.

Current behavior:*
My notebook has two drives, C: and D:, on drive C: Windows OS is installed and this drive has little space, so my windows is set to install all programs on drive D: (1 tera). However, Ionic does not recognize the installation done on drive D: and sets it as if it was not installed.
How to solve this problem?

Expected behavior:
Ionic is expected to recognize the path where it was installed and not where it thinks it should be installed.

Steps to reproduce:
Ionic has been removed and installed again, just like Angular, but they only seem to look at their default installation path on drive C:

Ionic info:
Ionic:
Ionic CLI : 5.4.6 (C:\Users\Administrador\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : not installed
@angular-devkit/build-angular : not installed
@angular-devkit/schematics : not installed
@angular/cli : not installed
@ionic/angular-toolkit : not installed

Utility:
cordova-res : 0.3.0
native-run : 0.2.9

System:
NodeJS : v10.16.3 (D:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

[ERROR] Error loading @ionic/angular package.json: Error: Cannot find module '@ionic/angular/package'
[ERROR] Error loading @ionic/angular-toolkit package.json: Error: Cannot find module '@ionic/angular-toolkit/package'
[ERROR] Error loading @angular/cli package.json: Error: Cannot find module '@angular/cli/package'
[ERROR] Error loading @angular-devkit/build-angular package.json: Error: Cannot find module
        '@angular-devkit/build-angular/package'
[ERROR] Error loading @angular-devkit/schematics package.json: Error: Cannot find module
        '@angular-devkit/schematics/package'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions