mapbox / mapbox/node-pre-gyp

" Cannot find module 'internal/util/types'" when installing sqlite3

Open
#333 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
271
Avg merge
23h 40m
Merged PRs (30d)
2

Description

I tried to install some software with npm that relied on sqlite3, not to avail because of the following error :

```
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: Cannot find module 'internal/util/types'
node-pre-gyp ERR! stack at Function.Module._resolveFilename (module.js:542:15)
node-pre-gyp ERR! stack at Function.Module._load (module.js:472:25)
node-pre-gyp ERR! stack at Module.require (module.js:585:17)
node-pre-gyp ERR! stack at require (internal/module.js:11:18)
node-pre-gyp ERR! stack at evalmachine.:31:26
node-pre-gyp ERR! stack at Object. (/usr/lib/node_modules/prey/node_modules/graceful-fs/fs.js:11:1)
node-pre-gyp ERR! stack at Module._compile (module.js:641:30)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:652:10)
node-pre-gyp ERR! stack at Module.load (module.js:560:32)
node-pre-gyp ERR! stack at tryModuleLoad (module.js:503:12)
node-pre-gyp ERR! System Linux 4.13.12-1-ARCH
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/prey/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/prey/node_modules/sqlite3
node-pre-gyp ERR! node -v v9.2.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!
```

I am not familiar enough with the internals of npm to be more helpful, but if you need any additional information do ask :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names the node-pre-gyp install entry point, sqlite3 dependency, Node.js v9.2.0, and node-pre-gyp v0.6.39, but no repository file or test. Reproduce the installation with those versions and inspect the reported graceful-fs/fs.js loading path. Done means identifying the compatibility failure and verifying that the sqlite3 installation no longer produces this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, sqlite
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.