After trying to build my frontend project with ng build I get this error message:
ERROR in ./node_modules/pace/node_modules/charm/index.js Module not found: Error: Can't resolve 'tty' in '/workspace/node_modules/pace/node_modules/charm'
Trying npm install tty --save
or npm install pace --save
does not resolve the issue.
node version is : v11.10.0 angular version : 7.0.0
resolved by modifyng index.js in node_modules/pace/node_modules/charm
Have to change var tty = require('tty');
with var tty = require('tty-browserify');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.