Skip to content

Missing package.json causes npm install error #98

@kenhys

Description

@kenhys

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)

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