Home > Software design >  NPM Install without CD the folder
NPM Install without CD the folder

Time:05-24

I'm using Windows Powershell and a pipeline in order to create the package of the application that I must deploy.

This is my pipeline: enter image description here

My issue regards the "npm install" command, because I don't want to CD the path where the package.json is stored. How to indicate where the "npm install" should be execute? I tried:

"npm --prefix C:\MyPath\Application\ClientApp install" but it returns this error

enter image description here

CodePudding user response:

Try running

npm install --prefix C:\MyPath\Application\ClientApp
  • Related