amplify-education / serverless-domain-manager

Serverless plugin for managing custom domains with API Gateways.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install plugin

TylerSustare opened this issue · comments

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

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

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

  • Domain Manager version(s): [e.g. v6.0.0, v7.0.0-beta.34]
  • Node/npm version: [e.g. Node 8/npm 5]
  • Serverless Version: [e.g. v1.35.1, 1.2.0]
  • Lambda Code [e.g. Javascript, Python, Java]

Possible Solution

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

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