node.js - npm install fails with angular project - Stack Overflow

I have a plain simple angular project with the following package.json:{"name": "enhance

I have a plain simple angular project with the following package.json:

{
  "name": "enhanced-kendo-grid",
  "version": "1.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^18.2.13",
    "@angular/common": "^18.2.13",
    "@angular/compiler": "^18.2.13",
    "@angular/core": "^18.2.13",
    "@angular/forms": "^18.2.13",
    "@angular/localize": "^18.2.13",
    "@angular/platform-browser": "^18.2.13",
    "@angular/platform-browser-dynamic": "^18.2.13",
    "@angular/router": "^18.2.13",
    "@progress/kendo-angular-buttons": "^16.1.0",
    "@progress/kendo-angular-common": "^16.1.0",
    "@progress/kendo-angular-dateinputs": "^16.1.0",
    "@progress/kendo-angular-dialog": "^16.1.0",
    "@progress/kendo-angular-dropdowns": "^16.1.0",
    "@progress/kendo-angular-excel-export": "^16.1.0",
    "@progress/kendo-angular-grid": "^16.1.0",
    "@progress/kendo-angular-icons": "^16.1.0",
    "@progress/kendo-angular-inputs": "^16.1.0",
    "@progress/kendo-angular-intl": "^16.1.0",
    "@progress/kendo-angular-l10n": "^16.1.0",
    "@progress/kendo-angular-label": "^16.1.0",
    "@progress/kendo-angular-layout": "^16.1.0",
    "@progress/kendo-angular-pdf-export": "^16.1.0",
    "@progress/kendo-angular-popup": "^16.1.0",
    "@progress/kendo-angular-progressbar": "^16.1.0",
    "@progress/kendo-angular-treeview": "^16.1.0",
    "@progress/kendo-angular-utils": "^16.1.0",
    "jquery": "^3.7.1",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.14.10"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^18.2.15",
    "@angular/cli": "^18.2.15",
    "@angular/compiler-cli": "^18.2.13",
    "@types/jasmine": "~4.3.0",
    "@types/jquery": "^3.5.30",
    "jasmine-core": "~4.6.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.2.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.1.0",
    "ng-packagr": "^18.2.1",
    "typescript": "~5.4.5"
  }
}

I was updating from Angular 16 to 19. Updating to 17 went fine. But while updating to 18 I got these errors:

npm error code 1
npm error path C:\xxxx\Devs\enhanced-kendo-grid\node_modules\lmdb
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp-build-optional-packages

I have tried the followings:

  • install node-gyp and node-gyp-build-optional-packages globally
  • delete the node_modules folder
  • clean the npm cache
  • deinstall and reinstall node js
  • npm install --no-optional

After all this tries I got always the same error. Any other ideas?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744305532a4567713.html

相关推荐

  • node.js - npm install fails with angular project - Stack Overflow

    I have a plain simple angular project with the following package.json:{"name": "enhance

    7天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信