lucide
lucide copied to clipboard
`yarn add lucide-angular` ≥ `0.87.0` postinstall fails with "`ngcc` not found"
Prerequisites
- Version:
lucide-angular
package0.89.0
,0.88.0
,0.87.0
- Are you running from source/main: No
- Are you using a released build: Yes
- Operating system: Ubuntu 22.04.1 LTS, also tested on Windows 11 with the same environment (detailed below).
- Bits: 64
Steps to reproduce
-
Install version
0.87.0
or later of thelucide-angular
package, to see thepostinstall
script fail.ravindu@wu:~/Projects/temp$ yarn add [email protected] ravindu@wu:~/Projects/temp$ yarn add [email protected] # (identical result) ravindu@wu:~/Projects/temp$ yarn add [email protected] # (identical result) yarn add v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... error ~/Projects/temp/node_modules/lucide-angular: Command failed. Exit code: 127 Command: ngcc Arguments: Directory: ~/Projects/temp/node_modules/lucide-angular Output: /bin/sh: 1: ngcc: not found info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Whereas, installing an older version of it would succeed,
ravindu@wu:~/Projects/temp$ yarn add [email protected] yarn add v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. success Saved 1 new dependency. info Direct dependencies └─ [email protected] info All dependencies └─ [email protected] Done in 17.09s.
Environment
-
New Angular project with
ng new ... --package-manager yarn
. -
Node.js, NPM, Yarn versions + global modules
ravindu@wu:~/Projects/temp$ node --version v18.9.0 ravindu@wu:~/Projects/temp$ npm --version 8.19.1 ravindu@wu:~/Projects/temp$ yarn --version 1.22.19 ravindu@wu:~/Projects/temp$ npm ls -g --depth 0 /usr/lib ├── [email protected] ├── [email protected] └── [email protected] ravindu@wu:~/Projects/temp$ yarn global list yarn global v1.22.19 info "@angular/[email protected]" has binaries: - ng Done in 0.96s.
0.87.0
was released on NPM ~a month ago so it took me by surprise to see no issues that reference this 😬.
@ravindUwU Thanks for reporting, will check what is happening!