Skip to content

NPM Reports a Missing Dependency Following Installation #25

@llee454

Description

@llee454

I installed your package using npm i -g ginkgoch-shapefile-cli without any errors. When I tried to run the program however, I got the following error message:

$ shapefile-cli --help
node:internal/modules/cjs/loader:958
  throw err;
  ^

Error: Cannot find module 'jsts'
Require stack:
- /usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-geom/dist/bundle.js
- /usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-shapefile/dist/bundle.js
- /usr/local/lib/node_modules/ginkgoch-shapefile-cli/commands/showHeader.js
- /usr/local/lib/node_modules/ginkgoch-shapefile-cli/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:955:15)
    at Module._load (node:internal/modules/cjs/loader:803:27)
    at Module.require (node:internal/modules/cjs/loader:1021:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at /usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-geom/dist/bundle.js:1:104
    at Object.<anonymous> (/usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-geom/dist/bundle.js:1:448)
    at Module._compile (node:internal/modules/cjs/loader:1119:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:997:32)
    at Module._load (node:internal/modules/cjs/loader:838:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-geom/dist/bundle.js',
    '/usr/local/lib/node_modules/ginkgoch-shapefile-cli/node_modules/ginkgoch-shapefile/dist/bundle.js',
    '/usr/local/lib/node_modules/ginkgoch-shapefile-cli/commands/showHeader.js',
    '/usr/local/lib/node_modules/ginkgoch-shapefile-cli/index.js'
  ]
}

Node.js v18.9.1

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