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

Missing package.json causes npm install error #98

Open
kenhys opened this issue Sep 14, 2018 · 0 comments
Open

Missing package.json causes npm install error #98

kenhys opened this issue Sep 14, 2018 · 0 comments

Comments

@kenhys
Copy link

kenhys commented Sep 14, 2018

Problem

This repository lacks package.json.
It causes npm install error when fgelinas/timepicker is specified in dependencies list.

e.g.
https://github.com/owncloud/calendar/blob/master/js/package.json#L64

Expected

package.json is commited into fgelinas/timepicker repository.

Actual

If timepicker is specified in dependencies list of external project, npm install fails with unexpected fatal error. (maybe since npm 6? see npm/npm#20824 (comment) )

npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kenhys/.npm/_logs/2018-09-14T07_38_44_168Z-debug.log

It was awful because it is hard to clarify the problem.

2120 silly fetchPackageMetaData error for jquery-timepicker@github:fgelinas/timepicker#883bb2cd94 premature close
2121 timing stage:rollbackFailedOptional Completed in 1ms
2122 timing stage:runTopLevelLifecycles Completed in 8138ms
2123 silly saveTree calendar@
2123 silly saveTree ├── angular-animate@1.7.4
2123 silly saveTree ├── angular-sanitize@1.7.4
2123 silly saveTree ├── angular-ui-bootstrap@2.5.6
2123 silly saveTree ├── angular@1.7.4
2123 silly saveTree ├── autosize@4.0.2
2123 silly saveTree ├── fullcalendar@3.9.0
2123 silly saveTree └── ical.js@1.2.2
2124 verbose stack Error: premature close
2124 verbose stack     at PassThrough.onclose (/home/kenhys/.nvm/versions/node/v10.10.0/lib/node_modules/npm/node_modules/end-of-stream/index.js:47:67)
2124 verbose stack     at PassThrough.emit (events.js:187:15)
2124 verbose stack     at emitCloseNT (internal/streams/destroy.js:59:8)
2124 verbose stack     at process._tickCallback (internal/process/next_tick.js:63:19)
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

1 participant