json - 无法在 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 npm@5, 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 npm@5, 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
解决方案
使用 --force 运行缓存清理
npm cache clean --force
推荐阅读
- java - Android TV 应用重定向到 Netflix、Stan 等其他应用
- azure - 尝试从 azure 自动化帐户运行 powershell 脚本以列出存储帐户中的 blob
- flutter - 如何通过 Flutter 应用启动 whatsapp 视频通话?
- amazon-web-services - 如何通过 nodejs 中的标签获取 lambda 函数?
- javascript - nodejs事件发射器,子向父发射事件
- python - 使用 Python 机器学习模型时,精度和 F 分数是不明确的警告
- html - 创建一个在溢出时水平滚动而不溢出页面的弹性框
- typescript - 在 Typescript 中记录相关错误。为什么会发生?
- java - 带有 Thycotic 的 spring-cloud-starter-vault-config
- python - Python BS4 Scraper 只返回每页的前 9 个结果