node+ npm + yarn
前置条件
(32条消息) node.js安装详细教程_The…Fuir的博客-CSDN博客_node安装
Installation | Yarn - Package Manager (yarnpkg.com)
项目地址
项目:automo插件
AutomaApp/automa: A browser extension for automating your browser by connecting blocks (github.com)
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-cBgKm7UG-1655472324678)(C:\Users\admin\AppData\Roaming\Typora\typora-user-images\image-20220616231115180.png)]
yarn build:zip
FAQ
FAQ1: yarn : 无法加载文件 D:\node\yarn.ps1,因为在此系统上禁止运行脚本。
执行set-ExecutionPolicy RemoteSigned
FAQ2:执行set-ExecutionPolicy RemoteSigned报错
请使用“以管理员
身份运行”选项启动 Windows PowerShell set-ExecutionPolicy RemoteSigned
FAQ3 yarn dev编译时候出现报错 error:03000086:digital envelope routines::initialization error
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-40JdkiuU-1655472324679)(C:\Users\admin\AppData\Roaming\Typora\typora-user-images\image-20220604220529723.png)]
出现这个错误是因为 node.js V17及以后版本中最近发布的OpenSSL3.0,
而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响.
在命令行输入
window系统 $env:NODE_OPTIONS=“–openssl-legacy-provider”
linux系统 export NODE_OPTIONS=–openssl-legacy-provider
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-12oe3Bbu-1655472324680)(C:\Users\admin\AppData\Roaming\Typora\typora-user-images\image-20220604220354472.png)]
FAQ4:npm ERR! fetch failed https://registry.npmjs.org/xxx的问题/Invalid response body while trying to fetch https://registry.npmjs.org/jest-
更换淘宝镜像源
le trying to fetch https://registry.npmjs.org/jest-
更换淘宝镜像源
npm config set registry https://registry.npm.taobao.org