Rob None
Rob None

Reputation: 551

NPM Install without CD the folder

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

Upvotes: 0

Views: 263

Answers (1)

Aakash Garg
Aakash Garg

Reputation: 10979

Try running

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

Upvotes: 1

Related Questions