João Pedro
09/28/2021, 7:28 PMnpx create-serverless-stack@latest --language typescript
it’s giving me the following error when installing the packages:
npm ERR! code 1
npm ERR! path /Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/aws-crt
npm ERR! command failed
npm ERR! command sh -c node ./scripts/install.js
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info TOOL Building only the install target, as specified from the command line.
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: <http://cmake.org>.
npm ERR! /Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/cmake-js/lib/cMake.js:115
npm ERR! throw new Error("CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: <http://cmake.org>.");
npm ERR! ^
npm ERR!
npm ERR! Error: CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: <http://cmake.org>.
npm ERR! at CMake.verifyIfAvailable (/Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/cmake-js/lib/cMake.js:115:15)
npm ERR! at CMake.build (/Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/cmake-js/lib/cMake.js:287:10)
npm ERR! at BuildSystem._invokeCMake (/Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/cmake-js/lib/buildSystem.js:59:40)
npm ERR! at async buildFromRemoteSource (/Users/jpmtrabbold/Documents/repos/the-gap-app-2/node_modules/aws-crt/scripts/build.js:148:5)
João Pedro
09/28/2021, 7:31 PMJoão Pedro
09/28/2021, 7:34 PMJoão Pedro
09/28/2021, 7:34 PMnpm WARN deprecated urix@0.1.0: Please see <https://github.com/lydell/urix#deprecated>
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: <https://github.com/lydell/resolve-url#deprecated>
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See <https://v8.dev/blog/math-random> for details.
npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See <https://v8.dev/blog/math-random> for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see <https://github.com/request/request/issues/3142>
npm WARN deprecated node-pre-gyp@0.13.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
João Pedro
09/28/2021, 7:37 PMFrank
João Pedro
09/28/2021, 7:39 PMJoão Pedro
09/28/2021, 7:40 PMFrank
npx create-serverless-stack@latest --language typescript
It should be
npx create-serverless-stack@latest my-sst-app --language typescript
João Pedro
09/28/2021, 7:48 PMFrank
Frank
João Pedro
09/28/2021, 7:54 PM