0

I have the following bat file. It exits after module load ria/node.

@echo on SET path =%PATH%; some path SET MODULEPATH=SOME PATH module load ria/node IF %ERRORLEVEL% NEQ 0 ( ECHO ERROR ) npm config set proxy some url 

enter image description here

10
  • C recognises space. Put spaces in. Commented Dec 21, 2016 at 8:03
  • Where I need put space Commented Dec 21, 2016 at 8:11
  • Does it print any error message? Commented Dec 21, 2016 at 8:15
  • 1
    @kiranGopal Please paste the text directly into your question, so we can copy and try it! Commented Dec 21, 2016 at 8:51
  • 1
    module load ria/node to module load ria /node. Plus you have extra spaces in the line starting with Set path, remove them. Commented Dec 21, 2016 at 20:12

1 Answer 1

1

Rather than module load ria/node use the command CALL module load ria/node. Calling programs from a batch file quitter often needs CALL to make the batch file wait for them to exit.

Sign up to request clarification or add additional context in comments.

1 Comment

You will probably have the same problem with npm config set proxy some url

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.