envinfo All In One
envinfo All In One
cli not work bug ❌
its stuck
$ npx envinfo
$ node -v
# v16.14.2
$ npm -v
# 8.5.0
$ npx -v
# 8.5.0
https://www.npmjs.com/package/envinfo
local install is OK ✅
$ npm install envinfo
bug.mjs
import envinfo from 'envinfo';
envinfo.run(
{
System: ['OS', 'CPU'],
Binaries: ['Node', 'Yarn', 'npm'],
Browsers: ['Chrome', 'Firefox', 'Safari'],
npmPackages: ['styled-components', 'babel-plugin-styled-components'],
},
{
json: true,
showNotFound: true
}
).then(env => console.log(env));
# ✅
$ node ./bug.mjs
{
"System": {
"OS": "macOS 12.3",
"CPU": "(12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz"
},
"Binaries": {
"Node": {
"version": "16.14.2",
"path": "~/.nvm/versions/node/v16.14.2/bin/node"
},
"Yarn": {
"version": "1.22.4",
"path": "~/.yarn/bin/yarn"
},
"npm": {
"version": "8.5.0",
"path": "~/.nvm/versions/node/v16.14.2/bin/npm"
}
},
"Browsers": {
"Chrome": {
"version": "108.0.5359.124"
},
"Firefox": "Not Found",
"Safari": {
"version": "15.4"
}
},
"npmPackages": {
"babel-plugin-styled-components": "Not Found",
"styled-components": "Not Found"
}
}
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
https://github.com/xgqfrms/ssr-next/blob/master/bug.js
https://github.com/xgqfrms/ssr-next/blob/master/bug.mjs
https://github.com/tabrindle/envinfo/issues/229#issuecomment-1354315315
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/17244971.html
未经授权禁止转载,违者必究!