none
How to install NodeJs in /ClientApp folder? + Core 2.2 React RRS feed

  • Question

  • Hi,

    I have created .NET Core 2.2 react project (using VS 2017 or VS 2019) and build using Docker file (Linux) and installed Nodejs as below.

    Docker file
    RUN curl -sL https://deb.nodesource.com/setup_10.x |  bash -
    RUN apt-get install -g nodejs

    .csproj file

    <Exec Command="node --version" ContinueOnError="true">
          <Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
    </Exec>

    The command “node –version” in .csproj file fails. Could you please help how to install NodeJS in /ClientApp folder?

    Thanks
    Kalai

    Sunday, November 10, 2019 8:35 PM

Answers