啟動angular項目時,一直啟動不起來,報以下錯誤泰佳,node版本也沒有問題,查看是環(huán)境變量的問題尘吗。
(node:61471) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
? ?wds?: Project is running at http://127.0.0.1:4200/webpack-dev-server/
? ?wds?: webpack output is served from /
? ?wds?: 404s will fallback to //index.html
10% building 4/5 modules 1 active /Users/wangxiaoya/abs-web/abs-web/node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-nodenode:internal/crypto/hash:69
? this[kHandle] = new _Hash(algorithm, xofLen);
? ? ? ? ? ? ? ? ? ^
Error: error:0308010C:digital envelope routines::unsupported
解決方法:?
在terminal執(zhí)行以下兩行指令逝她,設(shè)置一下環(huán)境變量,重新運行angular項目即可
export NODE_OPTIONS=--openssl-legacy-provider ?
set NODE_OPTIONS=--openssl-legacy-provider
然后再重新運行即可解決