在 NEAR 上运行GuestBook 示例yarn deploy
时,会产生以下错误:
/bin/sh: asb: command not found
根据Discord 对话,这似乎也发生在使用Figment Learn NEAR 路径的人身上。
跑步
npm install asb
返回
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: assemblyscript@0.17.14
npm WARN node_modules/assemblyscript
npm WARN assemblyscript@"^0.17.3" from near-sdk-core@2.2.4
npm WARN node_modules/near-sdk-core
npm WARN near-sdk-core@"^2.2.4" from near-sdk-as@2.2.4
npm WARN node_modules/near-sdk-as
npm WARN 1 more (@as-pect/cli)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer assemblyscript@"^0.13.3" from visitor-as@0.3.2
npm WARN node_modules/visitor-as
npm WARN visitor-as@"^0.3.2" from near-sdk-core@2.2.4
npm WARN node_modules/near-sdk-core
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/asb - Not found
npm ERR! 404
npm ERR! 404 'asb@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
编辑:许多命令稍后yarn install
,yarn update
错误似乎已迁移到缺少的asc
库:
$ asb
node:internal/modules/cjs/loader:926
throw err;
^
Error: Cannot find module 'assemblyscript/cli/asc'