### Which @angular/* package(s) are the source of the bug? Don't known / other ### Is this a regression? Yes ### Description # npm install always hangs at https://registry.npmjs.org/run-applescript during npm install. ## My system WSL2 on Windows 11 32g ram Intel i7-8700 npm 10.8.1 node v20.15.0 (also tried on 18 and 16 to no avail) Ubuntu 22.04.2 LTS Also, my globally installed packages ``` npm list -g --depth=0 /usr/local/lib ├── @angular/cli@18.0.5 ├── corepack@0.28.1 ├── md-to-pdf@5.2.4 ├── n@9.2.0 └── npm@10.8.1 ``` I will test this some more once I get home on a more beefed up system running Ubuntu nativly. ## Procedures to replicate 1. Attempted to start a new project via `ng new my-proj` (SASS, no SSR/SSG/Prerendering) 2. `ng new` hangs after selecting `n` to SSR on CREATE test/public/favicon.ico (15086 bytes) 3. `ctrl-c` out of `ng new` and `rm -rf my-proj` 4. Repeat steps 1-3 until it does not hang mysteriously? 5. Some time shortly after development project stops working - says missing packages and whatnot. (Validated this happened 2x now after recreating project) 6. Attempt to `rm -rf node_modules` and ` npm install` again. 7. Attempt step 6 again, this time also deleting package.lock 8. Attempt step 7 again after `npm cache clean --force` and `npm cache verify` 9. Always hangs on package run-applescript 10. [MFW](https://media.tenor.com/nYdAr6rffx0AAAAe/an-emoji-disintegrating-in-pain.png) Please note, it's so borked on the npm install that I have to `sudo kill -9` it's PID every time. Can't quit out like normal, it just hangs. I have left it running for upwards of 20 minutes, and it is still hanging. Also, during the process of writing this, I did get it to finish a hung `ng new`, but it took over 45 minutes. It looks the same as my previous `ng new` which did not hang. ## My package.json The only difference from a new install is that I also installed angular material, but I would assume that my issue is probably related to the same one I had with my initial creation of the project, so I am posting it here and not in the angular material issues. ``` { "name": "my-proj", "version": "0.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.0.0", "@angular/cdk": "^18.0.4", "@angular/common": "^18.0.0", "@angular/compiler": "^18.0.0", "@angular/core": "^18.0.0", "@angular/forms": "^18.0.0", "@angular/material": "^18.0.4", "@angular/platform-browser": "^18.0.0", "@angular/platform-browser-dynamic": "^18.0.0", "@angular/router": "^18.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.14.3" }, "devDependencies": { "@angular-devkit/build-angular": "^18.0.5", "@angular/cli": "^18.0.5", "@angular/compiler-cli": "^18.0.0", "@types/jasmine": "~5.1.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" } } ``` ## Attempts to remedy Removing node_modules and reinstalling Removing package.lock and reinstalling `npm cache clean --force` `npm cache validate` Restarting my machine Removing angular material from the list of packages Installing tslib myself Installing run-applescript myself Complaining to my boss Praying ### Please provide a link to a minimal reproduction of the bug https://github.com/ihormelgp/ng18-npm-i-brokey ### Please provide the exception or error you saw ```true npm install --verbose always stuck on the following line ... npm http fetch GET 200 https://registry.npmjs.org/eastasianwidth 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/fast-json-stable-stringify 4ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/bundle-name 5ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/default-browser-id 6ms (cache hit) npm http fetch GET 200 https://registry.npmjs.org/run-applescript 3ms (cache hit) ⠇ ``` ### Please provide the environment you discovered this bug in (run `ng version`) ```true Angular CLI: 18.0.5 Node: 20.15.0 Package Manager: npm 10.8.1 OS: linux x64 Angular: <error> ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1800.5 (cli-only) @angular-devkit/build-angular <error> @angular-devkit/core 18.0.5 (cli-only) @angular-devkit/schematics 18.0.5 (cli-only) @angular/cli 18.0.5 (cli-only) @schematics/angular 18.0.5 (cli-only) rxjs 7.8.1 (cli-only) typescript <error> zone.js <error> ``` ### Anything else? Prolly a good idea to add that feature --verbose to `ng new` so people like me can give more details, but I think what I got is still pretty decent.