Local install http/https module not found error
@benhayward.ben , Trying to install minds on google cloud linux(debian 9) server using local (minds install), facing the following error:
stderr: 'Browserslist: caniuse-lite is outdated. Please run next command
npm update caniuse-lite browserslist
\n' + 'Option "watch" was already specified with value true. The new value false will override it.\n' + '\n' + 'ERROR in ./node_modules/simple-get/index.js\n' + "Module not found: Error: Can't resolve 'http' in '/var/minds/front/node_modules/simple-get'\n" + 'ERROR in ./node_modules/simple-get/index.js\n' + "Module not found: Error: Can't resolve 'https' in '/var/minds/front/node_modules/simple-get'\n" + 'npm ERR! code ELIFECYCLE\n' + 'npm ERR! errno 1\n' + 'npm ERR! minds@0.0.0 build:dev:ng build --output-path=dist/en --deploy-url=http://localhost:8080/ --watch =true --poll=800 --aot "--watch=false"
\n' + 'npm ERR! Exit status 1\n' + 'npm ERR! \n' + 'npm ERR! Failed at the minds@0.0.0 build:dev script.\n' + 'npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n' + '\n'
I have tried running npm install --save http https
from front, Edited /var/minds/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js
node: false to node:{http:true, https:true}
, Edited package.json and added "browser":{"http":false, "https":false}
. None had an effect. Stack Link.
Any idea how to solve it ?
changed the description
added scoped label
- Developer
Can you confirm your node version is above version 10?
closed