AWSのamplifyのチュートリアルにしたがって、行っていますが、npm install -g @aws-amplify/cliでインストール後にamplify configureコマンドを入力すると、
bash: /Users/user/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify: No such file or directory
とでます。
which amplifyと入力すると、
/Users/suzukitoshinari/.npm-global/bin/amplify
とでます。
ちなみにnpm install -g @aws-amplify/cliでインストール後は以下が出ました。
suzukitarinoMBP:~ suzukitoshinari$ npm install -g @aws-amplify/cli
npm WARN deprecated graphql-import@0.7.1: GraphQL Import has been deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-import for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
npm WARN deprecated @graphql-toolkit/common@0.9.7: GraphQL Toolkit is deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-toolkit for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated @graphql-toolkit/common@0.6.6: GraphQL Toolkit is deprecated and merged into GraphQL Tools, so it will no longer get updates. Use GraphQL Tools instead to stay up-to-date! Check out https://www.graphql-tools.com/docs/migration-from-toolkit for migration and https://the-guild.dev/blog/graphql-tools-v6 for new changes.
npm WARN deprecated event-to-promise@0.8.0: Use promise-toolbox/fromEvent instead
/Users/suzukitoshinari/.npm-global/bin/amplify -> /Users/suzukitoshinari/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify
core-js@3.9.1 postinstall /Users/suzukitoshinari/.npm-global/lib/node_modules/@aws-amplify/cli/node_modules/@aws-amplify/graphql-types-generator/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js
https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
core-js@3.9.1 postinstall /Users/suzukitoshinari/.npm-global/lib/node_modules/@aws-amplify/cli/node_modules/amplify-graphql-types-generator/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
core-js@2.6.12 postinstall /Users/suzukitoshinari/.npm-global/lib/node_modules/@aws-amplify/cli/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"
@aws-amplify/cli@4.45.0 postinstall /Users/suzukitoshinari/.npm-global/lib/node_modules/@aws-amplify/cli
node scripts/post-install.js
Successfully installed the Amplify CLI
JavaScript Getting Started - https://docs.amplify.aws/start
Android Getting Started - https://docs.amplify.aws/start/q/integration/android
iOS Getting Started - https://docs.amplify.aws/start/q/integration/ios
Flutter Getting Started - https://docs.amplify.aws/start/q/integration/flutter
Amplify CLI collects anonymized usage data, which is used to help understand
how to improve the product. If you don't wish to send anonymized Amplify CLI
usage data to AWS, run amplify configure --usage-data-off to opt-out.
Learn more - https://docs.amplify.aws/cli/reference/usage-data
- @aws-amplify/cli@4.45.0
added 1208 packages from 735 contributors and updated 2 packages in 50.518s
よろしくお願いします。
あなたの回答
tips
プレビュー