MicrosoftDocs / mslearn-staticwebapp

Static Web App template repository
MIT License
80 stars 103 forks source link

npm install not working #154

Open Derngineer opened 10 months ago

Derngineer commented 10 months ago

I have cloned the repository successfully, when l try to run the dependencies l get npm install

changed 1 package, and audited 1408 packages in 6s

238 packages are looking for funding run npm fund for details

8 vulnerabilities (2 moderate, 6 high)

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

Seems the npm audit fix --force doesn't solve the problem either. Some l am stuck here.

RyanRRothwell commented 5 months ago

It could be a version thing.

I noticed in the audit that ...

@angular-devkit/build-angular <=14.2.12 || 15.0.0-next.0 - 15.2.10 || 16.0.0-next.0 - 16.2.12 || 17.0.0-next.0 - 17.3.1

and the version that is used nowadays is 20.

The app needs to be updated to use modern versions of node.js

also this...

npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: 'angular-app@0.0.0', npm warn EBADENGINE required: { npm: '>=8.0.0 <9.0.0', node: '>=16.0.0 <17.0.0' }, npm warn EBADENGINE current: { node: 'v22.2.0', npm: '10.8.1' } npm warn EBADENGINE }