我有windows 10,节点v11.0.0和角CLI: 7.1.4,并且在创建一个新的角应用程序时面临这个错误。npm错误!代码E404 npm!404未找到:@角/动画@~7.1.0。
错误堆栈:
0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Software\\node-v11.0.0-win-x64\\node.exe',
1 verbose cli 'D:\\Software\\node-v11.0.0-win-x64\\node_modules\\npm\\bin\\npm-cli.js
当我试图更新我的角度CLI和NPM时,我发现自己处于一个几乎无休止的错误循环中。每次更新时,都会收到警告消息,告诉我要安装对等依赖项(见下文),但每次安装依赖项时,都会遇到更多的警告消息。是否有更好的方法来处理这种情况,还是真的要花上几个小时?
npm WARN @angular/animations@5.2.1 requires a peer of @angular/core@5.2.1
but none is installed. You must install peer dependencies yourself.
npm WARN @angular/compiler-cli@5.1
我已经尽力解决了这个问题,但我找不到任何解决办法。这是一个错误:
npm ERR! While resolving: @angular-devkit/build-angular@14.2.4
npm ERR! Found: @angular/compiler-cli@12.2.16
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^12.2.16" from the root project
npm ERR!
npm ERR! Could not resolve
每当我试图使用npm安装一个角库(例如,我需要这个库: )时,我就会收到一些警告,说我应该自己安装对等依赖项。
npm WARN @progress/kendo-theme-bootstrap@2.6.2 requires a peer of bootstrap@git://github.com/twbs/bootstrap.git#95f37e4c402df37db16781995ffa1592032df9c8 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-pinch
我正在开发一个angular 10应用程序。在我的package.json中,我没有任何关于@babel的东西,但是当我运行npm install时,我遇到了一个错误:
npm ERR! 404 Not Found - GET http://private_repo/repository/npm-all/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.2.tgz
什么依赖项可以安装@babel?
我找不到答案。
ERROR in ./node_modules/ngx-toastr/fesm5/ngx-toastr.js
Module not found: Error: Can't resolve '/Users/vasanthan/Mean projects/node_modules/@angular/animations' in '/Users/vasanthan/Mean projects/MEAN-Library/node_modules/ngx-toastr/fesm5'
ERROR in ./node_modules/ngx-toast
我正在尝试使用ng new project-name安装一个新的angular starter项目,但每次都会出现以下错误代码 PS H:\Desktop\cool-app> ng serve
Could not find module "@angular-devkit/build-angular" from "H:\\Desktop\\cool-app".
Error: Could not find module "@angular-devkit/build-angular" from "H:\\Desktop\\cool-ap
新发展和接管一个由另一个开发人员启动的项目。我已经安装了角,也执行了npm安装,但我一直得到“@anuglar/编译器-cli”软件包没有正确安装。到目前为止,我尝试过的是:
(a) npm安装-g类型记录,然后(b) npm安装-在"ng服务“方面没有进展
(a) npm卸载
终端错误:
Error: The "@angular/compiler-cli" package was not properly installed.
at Object.<anonymous> (/Users/Jack/Documents/Github/t
我想使用Heroku部署我的MEAN-stack应用程序。我主要关注this tutorial series来构建我的应用程序。但是当我通过推送GIT开始部署时,它在构建过程中给出了这个错误: meanstacknieuw@1.0.0 postinstall /tmp/build_837e48e6_
> cd client && ng build --aot --prod
You seem to not be depending on "@angular/core" and/or "rxjs". This is an