Невозможно загрузить проблему схемы в файле angular.json

У меня проблема с файлом angular.json.

{
    "resource": "/e:/P dev/project/Resume_generator/front/angular.json",
    "owner": "_generated_diagnostic_collection_name_#1",
    "code": "768",
    "severity": 4,
    "message": "Unable to load schema from 'e:\\P dev\\project\\Resume_generator\\front\\node_modules\\@angular\\cli\\lib\\config\\schema.json': ENOENT: no such file or directory, open 'e:\\P dev\\project\\Resume_generator\\front\\node_modules\\@angular\\cli\\lib\\config\\schema.json'.",
    "startLineNumber": 2,
    "startColumn": 14,
    "endLineNumber": 2,
    "endColumn": 66
}

После этого я попробовал npm cache clean и снова получил ошибку

npm ERR! As of [email protected], the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Samanthika\AppData\Roaming\npm-cache\_logs\2021-07-08T16_01_34_045Z-debug.log

E:\P dev\project\Resume_generator\front>npm cache clean
npm ERR! As of [email protected], the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Samanthika\AppData\Roaming\npm-cache\_logs\2021-07-08T16_02_04_108Z-debug.log

См. также:  Провайдер Terraform для создания таблиц кассандры
Понравилась статья? Поделиться с друзьями:
IT Шеф
Комментарии: 3
  1. Samanthika Rajapaksa

    Очистить кеш с помощью —force

    npm cache clean --force
    
  2. Samanthika Rajapaksa

    Попробуйте выполнить указанные ниже действия, здесь.

    npm install -g [email protected]
    npm install -g @angular/cli
    

    Я сделал это, и это не работает для меня person Samanthika Rajapaksa; 08.07.2021

    Я обновил ответ, попробуйте это. person Samanthika Rajapaksa; 08.07.2021

  3. Samanthika Rajapaksa

    Сначала запустите это,

    npm cache clean --force
    

    Если это не работает, вы можете удалить файлы node modules и package-lock.json.

    Тогда беги,

    npm i
    
Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: