I am trying to add a custom flag in the npm start command, in an Angular 9 project, so that inside the local proxy server, I can intercept the proxy request and manipulate data. But I keep getting the "node: bad option" error. Cannot figure out why. Please help me. Below is my npm start command
"start" : "node -max_old_space_size=8192 --enable-mock ng serve --proxy-config proxy.config.js --host=0.0.0.0 --live-reload false";
then I just run npm start, then the "node: bad option: --enable-mock"
error shows up in the console, I cannot even start the development server.
没有评论:
发表评论