ydc012@YDC012deMac-mini alipay % npm i -g minidev npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated vm2@3.9.19: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm. npm WARN deprecated superagent@6.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
added 428 packages, and audited 429 packages in 34s
28 packages are looking for funding run `npm fund` for details
To address all issues (including breaking changes), run: npm audit fix --force
Run `npm audit` for details.
登录支付宝开发者账号
1
minidev login
扫码登录开发者账号,下图是报错如图
原因是权限不足导致的 需要在授权前添加 sudo
登录成功后会显示 完成授权。
注意:未执行登录或登录不成功时,开发时会出现以下报错。
1 2 3 4 5 6 7 8 9
[Error]: 工具还未完成授权,无法调用真机预览等操作,请手动设置或通过 login 命令来完成设置。(ErrorCode: auth.NotAuthenticationConfigured) at n.sendAuthRequest (/Users/stevendeng/.nvm/versions/node/v16.6.0/lib/node_modules/@ali/minidev-rc/lib/index.js:2:2164145) at n.<anonymous> (/Users/stevendeng/.nvm/versions/node/v16.6.0/lib/node_modules/@ali/minidev-rc/lib/index.js:2:2161410) at Generator.next (<anonymous>) at a (/Users/stevendeng/.nvm/versions/node/v16.6.0/lib/node_modules/@ali/minidev-rc/lib/index.js:2:1900835) at processTicksAndRejections (node:internal/process/task_queues:96:5) { scope: 'auth', errorCode: 'NotAuthenticationConfigured' }