awslabs / cloudfront-hosting-toolkit

CloudFront Hosting Toolkit offers the convenience of a managed frontend hosting service while retaining full control over the hosting and deployment infrastructure to make it your own.
Apache License 2.0
81 stars 3 forks source link

Failed to create bin at <project>/node_modules/.bin/cloudfront-hosting-toolkit. ENOENT: no such file or directory, open '<project>/node_modules/@aws/cloudfront-hosting-toolkit/bin/cli/index.js' #8

Closed lmammino closed 1 month ago

lmammino commented 1 month ago

Expected Behaviour

npm i -g @aws/cloudfront-hosting-toolkit does not install the binary as expected

Current Behaviour

Running both:

npm i -g @aws/cloudfront-hosting-toolkit@1.1.11

or

npm i -g @aws/cloudfront-hosting-toolkit@1.1.10

Produces the following warning and the binary is not created:

Failed to create bin at <project>/node_modules/.bin/cloudfront-hosting-toolkit. ENOENT: no such file or directory, open '<project>/node_modules/@aws/cloudfront-hosting-toolkit/bin/cli/index.js'

It seem to work for version 1.1.9 (npm i -g @aws/cloudfront-hosting-toolkit@1.1.9)

Code snippet

npm i -g @aws/cloudfront-hosting-toolkit@1.1.11

or

```bash
npm i -g @aws/cloudfront-hosting-toolkit@1.1.10

### Possible Solution

Looks like the `bin/cli/index.js` file is not included in the package published on npm

### Steps to Reproduce

```bash
npm i -g @aws/cloudfront-hosting-toolkit@1.1.11

or

npm i -g @aws/cloudfront-hosting-toolkit@1.1.10