我正在尝试更新我的npm软件包。与正在发生的事情相比,我认为我应该做的事情一直存在问题。
参考
我运行了npm更新-dd,并且没有相关的更新问题。我正在Windows 10中运行。
我发现执行更新的步骤如下:
%> npm outdated # to see all the packages that need to be updated
%> npm update # to perform the update
%> npm outdated # there should be no packages listed
下面是我运行上述命令的结果
e:\app>
我最近计划从angular 9升级到11, 在我的桌面上工作得很好。当我将项目从repo拉到我的笔记本电脑上(它与版本9一起使用)时,当我试图编译时,我总是得到下面的错误。我将全局Angular CLI更新为11.2.11 (项目位于11.2.2),并将Typescript更新为4.1.5。 这是错误: Your global Angular CLI version (11.2.11) is greater than your local version (11.2.2). The local Angular CLI version is used.
To disable this war
我的VSCode终端出现了一些错误:
loader-utils 3.0.0 - 3.2.0
Severity: high
loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable - https://github.com/advisories/GHSA-3rfm-jhwj-7488
loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) - https://github.co
运行ng deploy时,我得到以下错误:
An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "C:\Users\theoh\AppData\Local\Temp\ng-Nv0wMh\angular-errors.log" for further details.
错误的完整日志如下:
[error] Error: NOT SUPPORTED: keyword "id", use "$id
我已经安装了正常工作的节点模块的angular-cli项目。当我将项目拉到新目录时,我能够执行npm安装,但出现以下警告:
npm WARN deprecated angular-cli@1.0.0-beta.26: angular-cli has been renamed to @angular/cli. Please update your dependencies.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS i
我已经在一台新的机器上安装了最新的angular-cli,并且我正在尝试使用以前的cli版本生成的项目
我收到了这个警告
Your global Angular CLI version (1.6.4) is greater than your local
version (1.6.3). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
虽然项目工作正常,但为了用最新的依赖项更新项目并避免此消息
我刚刚安装了Ionic npm install -g @ionic/cli 当我试着跑的时候 ionic start ionic-test-app 初始化失败,出现npm依赖错误。关于一个名为postcss的包的错误版本。 $ ionic start ionic-test-app
Pick a framework! ?
Please select the JavaScript framework to use for your new app. To bypass this prompt next time,
supply a value for the --type option.
我刚刚安装了Angular 8。当我尝试使用"ng serve --open“运行一个项目时,它给出了以下错误:
Could not find the implementation for builder @angular-devkit/build-angular:dev-server
Error: Could not find the implementation for builder @angular-devkit/build-angular:dev-server
at WorkspaceNodeModulesArchitectHost.resolveBuilder (
在更新Angular Cli to 8版本时,我遇到了以下错误。 Could not find module "@angular-devkit/build-angular" from "C:\\Users\\AGT\\Desktop\\central8\\client".
Error: Could not find module "@angular-devkit/build-angular" from "C:\\Users\\AGT\\Desktop\\central8\\client".
at Object.resol
我已经尽力解决了这个问题,但我找不到任何解决办法。这是一个错误:
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还是通过ng add @angular/material,以及我是否选择使用动画)。
它过去在没有任何警告或问题的情况下工作。有人能帮我吗?
以下是警告:
git:(master) ✗ ng serve
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2019-06-02T16:53:30.127Z
Hash: 790c60ed1be271555
当我用咕哝(咕噜发球)表演的时候,我得到了:
Running "bower-install:app" (bower-install) task
popcornjs was not injected in your file.
Please go take a look in "app\bower_components\popcornjs" for the file you need, then manually include it in your file.
我将Popcorn.js添加到bower.json中:
{
"name":
我正在整理我的第一个角度网站,并认为这可能是最好的,我尝试使用尤曼之前,我太深入到这一点。我想不出怎样才能让每件事都在一起。
我用yeoman创建了一个应用程序,当出现提示时,下面是我选择的选项:
yo angular myapp
Would you like to use Sass (with Compass)? (Y/n) y
Would you like to include Bootstrap? (Y/n) y
Would you like to use the Sass version of Bootstrap? (Y/n) y
? Which modules would you
在将error项目从9.1.12升级到14.0.6之后,我看到通过运行npm run build构建该项目后出现的错误
npm run build
> gui@2.0.0 build C:\projects\gui-components
> ng build
⠋ Generating browser application bundles (phase: setup)...Warning: Support was requested for Internet Explorer in the project's brows