i downloaded node js on my pc, set up the paths for aliases in shell and created an angular project firstly on my desktop just for test purposes and it works fine. but if i create an angular project in my application where the backend is located, i get the following error:
Application bundle generation failed. [0.134 seconds]
✘ [ERROR] No native build was found for platform=darwin arch=arm64 runtime=node abi=108 uv=1 armv=8 libc=glibc node=18.20.3
attempted loading from: /Users/x/Desktop/Home and package: @/-darwin-arm64
this is my angular setup.
Angular CLI: 18.0.4
Node: 18.20.3
Package Manager: npm 10.7.0
OS: darwin arm64
Angular: 18.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.4
@angular-devkit/build-angular 18.0.4
@angular-devkit/core 18.0.4
@angular-devkit/schematics 18.0.4
@angular/cli 18.0.4
@angular/ssr 18.0.4
@schematics/angular 18.0.4
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
the package.json file:
{
"name": "food-delivery-frontend",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"serve:ssr:FoodDeliveryFrontend": "node dist/food-delivery-frontend/server/server.mjs"
},
"private": true,
"dependencies": {
"@angular/animations": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/compiler": "^18.0.0",
"@angular/core": "^18.0.0",
"@angular/forms": "^18.0.0",
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@angular/platform-server": "^18.0.0",
"@angular/router": "^18.0.0",
"@angular/ssr": "^18.0.4",
"express": "^4.18.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.0.4",
"@angular/cli": "^18.0.4",
"@angular/compiler-cli": "^18.0.0",
"@types/express": "^4.17.17",
"@types/jasmine": "~5.1.0",
"@types/node": "^18.18.0",
"jasmine-core": "~5.1.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",
"typescript": "~5.4.2"
}
}
i tried to change the version of node to 20.14.0 using nvm use 20.14.0
, but it doesn’t change anything. for the creation of the angular project i used ng new project_name
. also, i saw a recommendation to add the overrides in my package.json, but still doesn’t work:
"overrides": {
"lmdb": "2.6.0-alpha6",
"@lmdb/lmdb-darwin-arm64": "2.6.0-alpha6",
"@lmdb/lmdb-darwin-x64": "2.6.0-alpha6",
}