Skip to content

exception on compiñe amgular proj with vscode #4

Description

@scascalesp

An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
Require stack:

  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\node-modules-architect-host.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\index.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\models\architect-command.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\commands\build-impl.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\export-ref.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\index.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\utilities\json-schema.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\models\command-runner.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\lib\cli\index.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\lib\init.js
  • C:\Users\SCPPC\AppData\Roaming\npm\node_modules@angular\cli\bin\ng
    See "C:\Users\SCPPC\AppData\Local\Temp\ng-eDa4sL\angular-errors.log" for further details.
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file C:\WINDOWS\system32\cmd.exe
    npm ERR! errno ENOENT
    npm ERR! ng-auth@0.0.0 build: ng build
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the ng-auth@0.0.0 build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SCPPC\AppData\Roaming\npm-cache_logs\2021-11-25T22_51_28_275Z-debug.log
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run build" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

thx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions