对此,我尝试从命令行安装 aws amplify,但它不断向我抛出错误消息:我尝试了 sudo,尝试了安全路径但无济于事。我是节点新手,不了解依赖关系等,并且不确定我做错了什么!
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: graphql@14.7.0
npm ERR! node_modules/@aws-amplify/cli/node_modules/graphql
npm ERR! graphql@"^14.5.8" from @aws-amplify/amplify-category-api@1.1.10
npm ERR! node_modules/@aws-amplify/cli/node_modules/@aws-amplify/amplify-category-api
npm ERR! @aws-amplify/amplify-category-api@"1.1.10" from @aws-amplify/cli@7.6.8
npm ERR! node_modules/@aws-amplify/cli
npm ERR! @aws-amplify/cli@"*" from the root project
npm ERR! @aws-amplify/amplify-category-api@"1.1.10" from amplify-container-hosting@2.4.10
npm ERR! node_modules/@aws-amplify/cli/node_modules/amplify-container-hosting
npm ERR! amplify-container-hosting@"2.4.10" from @aws-amplify/cli@7.6.8
npm ERR! node_modules/@aws-amplify/cli
npm ERR! @aws-amplify/cli@"*" from the root project
npm ERR! graphql@"^14.5.8" from @aws-amplify/graphql-auth-transformer@0.5.7
npm ERR! node_modules/@aws-amplify/cli/node_modules/@aws-amplify/graphql-auth-transformer
npm …Run Code Online (Sandbox Code Playgroud)