当你尝试访问不存在的依赖项时(特别是从项目中的babel访问), 会发生这些错误。
注意:因为如果你正在使用一个已经存在的项目, 通常不会发生这种情况, 也许你忘了使用npm install安装依赖项吗?
要解决此错误, 请使用以下方法手动安装依赖项:
npm install babel-preset-es2015
npm install babel-preset-react
npm install react
npm install react-dom
如果你使用的是Windows, 为防止任何错误, 请在说明中添加–no-bin-links参数:
npm install babel-preset-es2015 --no-bin-links
npm install babel-preset-react --no-bin-links
npm install react --no-bin-links
npm install react-dom --no-bin-links
如果错误仍然存在, 请尝试更新Node.js
来源:
https://www.srcmini02.com/61898.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_38286.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57