Aurora SDK install via NPM
Was excited to see the new SDK via NPM but I hit some problems I wanted to share with you.
The documentation says you support NodeJS 16 and 17. With Node 17.9.1 installed you get errors when you try to install the sdk, specifically:
sudo npm install khoros-aurora-sdk --no-fund
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/eslint-plugin@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/parser@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/scope-manager@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/type-utils@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/types@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/typescript-estree@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/utils@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@typescript-eslint/visitor-keys@6.8.0',
npm WARN EBADENGINE required: { node: '^16.0.0 || >=18.0.0' },
npm WARN EBADENGINE current: { node: 'v17.9.1', npm: '8.11.0' }
npm WARN EBADENGINE }
I had to drop back down to 16.20.2 to be able to successfully install the aurora SDK.
When I run npm list I now get:
`-- khoros-aurora-sdk@24.5.0-rc.0
Ok so fixed but looks like node 17 isn't supported.
Next problem, it tells me to clone the repo from git, which I do. It then tells me to find .env.local file and edit it in a text editor. I have checked that hidden files are visible in file explorer but there is no file called .env.local..
What am I missing?
The only files in the cloned repo are:
1. a directory called res which contains sub-directories [components,props,quilts,texts,themes]
2. a file called README.md