hello folks by creating a new project using `npx c...
# help
j
hello folks by creating a new project using
npx create-serverless-stack@latest --language typescript
it’s giving me the following error when installing the packages:
Copy code
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)
I have cmake installed via brew
but it creates the project nevertheless, and when I run npm install, it goes alright
although lots of deprecations:
Copy code
npm 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
@Frank @Jay
f
Hey @João Pedro lemme give it a try
j
oh, just ran for the 4th time and now it worked perfectly
@Frank thanks anyway!! do you guys have plans for dealing with the deprecations?
f
@João Pedro, something’s weird with the command, the app name is missing, so instead of
Copy code
npx create-serverless-stack@latest --language typescript
It should be
Copy code
npx create-serverless-stack@latest my-sst-app --language typescript
j
@Frank oh yes, I removed the app name before putting the command here
f
ah I see
j
that’s awesome @Frank thank you very much!