当前位置:   article > 正文

运行项目之node版本问题出现的报错_node: -openssl-legacy-provider is not allowed in n

node: -openssl-legacy-provider is not allowed in node_options

一、报错提示

  1. //报错
  2. C:\Users\APRIL\Desktop\code\thinkjs-iview-admin\front-end>npm run dev
  3. > front-end@1.2.3 dev C:\Users\APRIL\Desktop\code\thinkjs-iview-admin\front-end
  4. > webpack-dev-server --content-base ./ --open --inline --hot --compress --config build/webpack.dev.config.js
  5. Happy[happybabel]: Version: 4.0.0. Threads: 2 (shared pool)
  6. fs.js:169
  7. throw new ERR_INVALID_CALLBACK(cb);
  8. ^
  9. TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received 29
  10. at maybeCallback (fs.js:169:9)
  11. at Object.write (fs.js:694:14)
  12. at C:\Users\APRIL\Desktop\code\thinkjs-iview-admin\front-end\build\webpack.dev.config.js:13:8
  13. at FSReqCallback.oncomplete (fs.js:180:23) {
  14. code: 'ERR_INVALID_CALLBACK'
  15. }
  16. npm ERR! code ELIFECYCLE
  17. npm ERR! errno 1
  18. npm ERR! front-end@1.2.3 dev: `webpack-dev-server --content-base ./ --open --inline --hot --compress --config build/webpack.dev.config.js`
  19. npm ERR! Exit status 1
  20. npm ERR!
  21. npm ERR! Failed at the
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/108699
推荐阅读
相关标签
  

闽ICP备14008679号