Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that release 5.1.0 in npm registry lack index.js #241

Closed
xiechao06 opened this issue Jan 3, 2018 · 11 comments
Closed

It seems that release 5.1.0 in npm registry lack index.js #241

xiechao06 opened this issue Jan 3, 2018 · 11 comments

Comments

@xiechao06
Copy link

xiechao06 commented Jan 3, 2018

Since there's no "index.js"

const connect = require('gulp-connect');

complains module 'gulp-connect' can't be found

@xiechao06
Copy link
Author

xiechao06 commented Jan 3, 2018

@johnnynode thanks for your response, instead I retreat to use version 5.0.0.
You provide a workaround, but I think this is still a problem. eg. if I could just install gulp-connect@5.0.0 and get everything done, why in this same major version (5.1.0), I need to do this extra step in script or something?

@emismith90
Copy link

This is how I fix for our project:

  • Add "coffee-script": "^1.12.7" to devDependencies
  • Define "build-gulp-connect" task:
"scripts": {
    "start": "node index.js",
    "build": "gulp build",
    "build-gulp-connect": "coffee --compile --output node_modules/gulp-connect/ node_modules/gulp-connect/src/",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  • Add additional step before your automation build (if necessary)

@LinboLen
Copy link

LinboLen commented Jan 3, 2018

pls fix it

@johnnynode
Copy link

johnnynode commented Jan 3, 2018

@xiechao06 Yeah, just a workaround. The steps here are just for test and development, not for production. Thanks for your feedback.

@Kyrodan
Copy link
Contributor

Kyrodan commented Jan 3, 2018

The NPM-Package is broken - as @xiechao06 stated. The NPM-Package is currently unusable and the version 5.1.0 should be revoked from NPM. A new version (e.g. 5.1.1) containing compiled index.js should be provided quickly.

@SeanHub
Copy link

SeanHub commented Jan 3, 2018

Yeah my Jenkins server is failing my builds because of the "Cannot find module 'gulp-connect'" error.

@meibegger
Copy link

+1

@c-rick
Copy link

c-rick commented Jan 3, 2018

+1, I mistaken that my NPM is bad

@geryit
Copy link

geryit commented Jan 3, 2018

had to revert to 4.2 : "gulp-connect": "^4.2.0",

@adam-stokes
Copy link

We are pinned at 5.0.0 but the same issue still occurs

avevlad added a commit that referenced this issue Jan 4, 2018
@avevlad
Copy link
Owner

avevlad commented Jan 4, 2018

Please update to gulp-connect@5.2.0

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests