amplify-education / serverless-domain-manager

Serverless plugin for managing custom domains with API Gateways.
MIT License
941 stars 232 forks source link

Cannot install plugin #535

Closed TylerSustare closed 1 year ago

TylerSustare commented 1 year ago

Running sls plugin install -n severless-domain-manager results in ✖ npm ERR! Cannot read properties of null (reading 'matches') error

➜ sls plugin install -n serverless-domain-manager
✖ npm ERR! Cannot read properties of null (reading 'matches')

  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/tyler/.npm/_logs/2023-01-17T03_53_03_348Z-debug-0.log

Environment: darwin, node 18.12.1, framework 3.26.0, plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: `npm install --save-dev serverless-domain-manager@latest` Exited with code 1
    at ChildProcess.<anonymous> (/Users/tyler/.nvm/versions/node/v18.12.1/lib/node_modules/serverless/node_modules/child-process-ext/spawn.js:38:8)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1091:16)
    at Socket.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:313:12)

Community Note

Bug Report

Error Description A clear and concise description of the behavior.

Command Run e.g. sls deploy, sls create_domain, etc.

Console Output

Domain Manager Configuration Replace this with your own serverless.yml file (anonymized, of course) to help us better resolve your issue.

custom:
  customDomain:
    domainName: foo.example.tld
    basePath: bar
    createRoute53Record: true

Versions

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

TylerSustare commented 1 year ago

I was able to work around this by installing serverless and this plugin as dev dependencies. Worked like a charm ※(^o^)/※