Skip to content

missing dist directory after npm install#12

Description

@dsilvasc

馃悰 Bug description

After installing this package with npm, the node_modules/serverless-localhost/ directory contains just package.json, README.md, LICENSE, and CHANGELOG.md. The dist directory is missing.

Consequently running serverless localhost fails with

Serverless plugin "serverless-localhost" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.

I think you need to commit the dist directory to the repository per https://stackoverflow.com/questions/46619788/npm-install-from-a-git-repo-leaves-a-pretty-blank-package

馃 Expected Behavior

The dist directory should be present after installing.

馃憻 Steps to reproduce

$ npm install softprops/serverless-localhost
$ ls node_modules/serverless-localhost/
CHANGELOG.md  LICENSE       README.md     node_modules/ package.json
$ serverless localhost

  Serverless Error ---------------------------------------

  Serverless plugin "serverless-localhost" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.

馃實 Your environment

$ npm --version
6.5.0
$ node --version
v11.6.0
$ uname -a
Darwin localhost 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec  1 18:59:03 PST 2019; root:xnu-4903.278.19~1/RELEASE_X86_64 x86_64

serverless version: 1.60.4 (standalone)
serverless-localhost version: latest master, 0.1.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions