1 year ago

#295798

test-img

gson.json

How to run npm install with ANT without having nodejs path in system variable?

<target name ="npm-install">
<exec dir="${pathToSomeDir}" executable="npm.cmd" failonerror="true">
    <arg value="install" />
</exec>

I am doing npm install with this task which is running fine only if I have nodejs path in my system variable I want to do this task without having nodejs path in the system variable is there any workaround for this? if available please tell for UNIX too. p.s :- in ${pathToSomeDir} there is package.json and scripts etc.

node.js

ant

environment-variables

npm-install

system-variable

0 Answers

Your Answer

Accepted video resources