sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

Does not seem to work with angular 14 #1217

Closed rudvfaden closed 2 years ago

rudvfaden commented 2 years ago

When using the template and running npm install i get this error.

`npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @clr/angular@4.0.16 npm ERR! Found: @angular/common@13.2.7 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"~13.2.6" from the root project npm ERR! peer @angular/common@"^13.0.0 || ^14.0.0-0" from @angular/cdk@13.3.9 npm ERR! node_modules/@angular/cdk npm ERR! @angular/cdk@"^13.3.8" from the root project npm ERR! 4 more (@angular/forms, @angular/platform-browser, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^10.0.0" from @clr/angular@4.0.16 npm ERR! node_modules/@clr/angular npm ERR! @clr/angular@"^4.0.16" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/common@10.2.5 npm ERR! node_modules/@angular/common npm ERR! peer @angular/common@"^10.0.0" from @clr/angular@4.0.16 npm ERR! node_modules/@clr/angular npm ERR! @clr/angular@"^4.0.16" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/JB4555/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/JB4555/.npm/_logs/2022-06-23T08_25_15_185Z-debug-0.log`

allanbowe commented 2 years ago

Hi @rudvfaden - this is due to the change in behaviour in NPM v7. Not all the dependencies are updated yet, and so it's necessary to use npm i --legacy-peer-deps. I've added this to the .npmrc file so the npm install command should just work if you try to sasjs create yourapp -t angular again