title: ERROR in ./ansi-html 1:0 Module parse failed: Unexpected character '#' (1:0)
body: <p>I am learning angular js. When I run ng serve --open I get below error</p>
  
  <pre><code>ERROR in ./ansi-html 1:0
  Module parse failed: Unexpected character '#' (1:0)
  You may need an appropriate loader to handle this file type
  &gt; #!/bin/sh
  | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
  </code></pre>
  
  <p><strong>angular CLI version is 6.2.0</strong></p>
  
  <p><strong>node version is 8.11.4</strong></p>
  
  <p><strong>npm version is 6.4.1</strong></p>
  
  <p>ansi-html file is as</p>
  
  <pre><code>#!/bin/sh
  basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
  
  case `uname` in
      *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
  esac
  
  if [ -x "$basedir/node" ]; then
    "$basedir/node"  "$basedir/node_modules/ansi-html/bin/ansi-html" "$@"
    ret=$?
  else 
    node  "$basedir/node_modules/ansi-html/bin/ansi-html" "$@"
    ret=$?
  fi
  exit $ret
  </code></pre>
  
  <p>If I remove first line then error is</p>
  
  <pre><code>ERROR in ./ansi-html 1:18
  Module parse failed: Unexpected token (1:18)
  You may need an appropriate loader to handle this file type.
  &gt; basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
  |
  | case `uname` in
  i ?wdm?: Failed to compile.
  </code></pre>