我已经从https://github.com/hyperledger/composer-sample-applications/tree/master/packages/digitalproperty-app的克隆中将“ landRegistry”的每个措辞更新为“ serverRegistry”
我执行了“ npm install”并运行了“ node cli serverregistry bootstrap”,但是我仍然收到错误消息:
info: [ServerProperty-App] * Hyperledger Composer: Server Property console application
info: [ServerProperty-App] * Adding default parameters to the asset registry
cli serverregistry bootstrap
Options:
--help Show help [boolean]
Cannot find module './../../landRegistry.js'
如果我将原始的landRegistry.js复制到该文件夹,则它可以正常工作。 这是我的文件夹结构:
/home/ubuntu/fd/lib/
serverRegistry.js
landRegistry.js <- If I added this, it works. The content is the same as of serverRegistry.
仍然指向着LandRegistry.js的那段代码在哪里?我在代码中找不到。如何解决?