create-amplify is a package for scaffolding an Amplify project by running npm create amplify
.
In a frontend project folder or empty folder, run npm create amplify
.
Does Amplify support pnpm on Windows?
No. Amplify uses nested node_modules
, but "pnpm does not create deep folders, it stores all packages flatly and uses symbolic links to create the dependency tree structure." See details: on PNPM docs.
Does Amplify support Yarn Plug'n'Play?
No. Please run yarn config set nodeLinker node-modules
to use node_modules
instead.
Why do I see npm_config_user_agent is undefined
?
The CLI uses this environment variable to determine which package manager to use when spawning processes. To resolve this:
a. Do not install or use amplify
globally
b. Use the same package manager for all commands in a given project
c. When running E2E tests locally without a package manager, set npm_config_user_agent
to npm
.