Click here to Skip to main content
13,629,491 members
Rate this:
 
Please Sign up or sign in to vote.
Hi i need a script (bat or ps.1) to generate node_modules as they are not checked in by the team to the repository. Im doing a XAML build from Visual Studio IDE the build agent folder is like D:builds\2\projectname\buildname\src\code\. I need the node_modules inside that D:builds\2\projectname\buildname\src\code\ folder where my package.json is and rest of the code is present. I have checked in the ps.1 script with npm install command and passing in the pre-build script section of the process but it is firing at D:builds\2\projectname\buildname\src\ with npm err saying package.json is not found and some npm errs.Can any one help me on this.

What I have tried:

I have checked in the ps.1 script with npm install command and passing in the pre-build script section of the process but it is firing at D:builds\2\projectname\buildname\src\ with npm err saying package.json is not found and some npm errs.Can any one help me on this.
npm install and npm run build are the commands i have kept in the script. Is i need any big change to be made to the script, as i'm not much aware of scripting.
Posted 3-Aug-16 0:34am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180712.1 | Last Updated 3 Aug 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100