Skip to content

DeprecationWarning: Invalid 'main' field in 'package.json' #15

@josejooj

Description

@josejooj
  • zip-lib Version: 1.1.1
  • Node.js Version: v22.14.0
  • npm Version: 10.9.2
  • OS [macos, linux, windows]: Linux (Ubuntu 24.04 LTS)

Describe the bug
When i start the process, i receive this warning:

(node:495) [DEP0128] DeprecationWarning: Invalid 'main' field in '/app/node_modules/zip-lib/package.json' of 'lib/index.js'. Please either fix that or report it to the module author

To Reproduce
Steps to reproduce the behavior:

mkdir test
cd test
npm init --y
npm install zip-lib
echo 'require("zip-lib")' >> index.js
node .

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions