简体   繁体   English

解决角度项目错误

[英]troubleshoot angular project errors

I was provided an angular project with a set of existing errors and a list of enhancements to work on. 为我提供了一个有角度的项目,其中包含一系列现有错误以及要进行的改进。 When I downloaded the same and tried running "npm install" on the project, it failed saying "Operation not permitted by operating system". 当我下载相同的文件并尝试在项目上运行“ npm install”时,它失败并显示“操作系统不允许的操作”。 I have tried all the solutions suggested online including: 我尝试了在线建议的所有解决方案,包括:

  1. npm cache clean npm缓存清理
  2. npm cache clean --force npm缓存清理--force
  3. deleting the node_modules folder 删除node_modules文件夹
  4. Running npm cache clean over and over again 一遍又一遍地运行npm cache clean
  5. Trying different versions of Node along with npm v5+ 与npm v5 +一起尝试不同版本的Node
  6. Running all the commands and opening IDE in "Run as Administrator" mode 运行所有命令并以“以管理员身份运行”模式打开IDE
  7. Ran all the commands from command prompt as well 也从命令提示符处运行所有命令
  8. Ran all the commands from command prompt opened in "Run as Administrator" mode 从“以管理员身份运行”模式下打开的命令提示符中运行所有命令
  9. Deleted the package-lock.json file and then ran "npm install" 删除package-lock.json文件,然后运行“ npm install”
  10. Deleted the package-lock.json file and then ran "npm install --no-optional" In between all the above steps tried my own recipes as well. 删除package-lock.json文件,然后运行“ npm install --no-optional”。在上述所有步骤之间,我也尝试了自己的食谱。

If someone could help me figure out what the issue is? 如果有人可以帮助我找出问题所在?

I found a thread on Github discussing the error. 我在Github上找到一个讨论该错误的线程。 The solutions described do not work for me. 所描述的解决方案不适用于我。

https://github.com/google/material-design-icons/issues/853 https://github.com/google/material-design-icons/issues/853

Finally, The below steps helped me resolve the issue. 最后,以下步骤帮助我解决了问题。

Installed material-design-icons globally using npm install material-design-icons -g Next, removed the node_modules directory from the project and ran npm install . 安装material-design-icons全球使用npm install material-design-icons -g接下来,去掉了node_modules从项目和RAN目录npm install This worked for me but not in time to submit before deadline. 这对我有用,但没有在截止日期之前及时提交。 The project compiled and ran successfully using npm start post the above steps. 通过上述步骤npm start使用npm start编译并成功npm start该项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编译Angular 2 VS 2015快速入门项目中的错误 - Compile errors in Angular 2 VS 2015 quickstart project 使用Angular CLI创建项目会出现错误 - Using Angular CLI to create a project gives errors unt角项目,然后由于找不到模块而出错 - grunt an angular project then it errors as Cannot find Module 在 angular 项目中添加 node.js 服务器抛出错误 - Adding a node.js server in angular project is throwing errors 在 angular 项目 Visual Studio 代码上启动前端时出错 - Errors starting frontend on angular project visual studio code 在Angular 15 + Electron 22项目中使用ipcRenderer导致构建错误 - Using ipcRenderer in Angular 15 + Electron 22 project causes building errors 在 Angular 中创建新项目时出现错误,删除 node-modules 和 package-lock.json 后,出现运行时错误 - Getting Errors while creating new Project in Angular , after removing node-modules and package-lock.json, getting run time errors 如何修复在初始化新 Angular 项目时发生的这些错误? - How can I fix these errors that occured while initializing a new Angular project? 我正在使用 angular 11 我想做一个项目,但我遇到了错误 - i am using angular 11 i want to do a project but i got errors 由于过多的JS错误,Gulp.js无法编译angular.js项目? - Gulp.js can't compile angular.js project due to excessive js errors?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM