I keep getting this error when trying to install the project #2020

Closed
opened 2026-04-05 16:44:05 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @iamsethsamuel on 2/15/2023

Describe the bug
I ran the bash preinstall.sh command and I keep getting the error below
node:internal/modules/cjs/loader:1039
const err = new Error(message);
^

Error: Cannot find module 'typescript'
Require stack:

  • /usr/local/lib/node_modules/ts-node/dist/util.js
  • /usr/local/lib/node_modules/ts-node/dist/index.js
  • /usr/local/lib/node_modules/ts-node/dist/esm.js
  • /usr/local/lib/node_modules/ts-node/dist/child/child-loader.js
  • /usr/local/lib/node_modules/ts-node/child-loader.mjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)
    at projectLocalResolveHelper (/usr/local/lib/node_modules/ts-node/dist/util.js:117:24)
    at resolveCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:232:22)
    at resolveAndLoadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:225:26)
    at findAndReadConfig (/usr/local/lib/node_modules/ts-node/dist/configuration.js:48:28)
    at phase3 (/usr/local/lib/node_modules/ts-node/dist/bin.js:254:67)
    at bootstrap (/usr/local/lib/node_modules/ts-node/dist/bin.js:47:30)
    at Object. (/usr/local/lib/node_modules/ts-node/dist/child/child-entrypoint.js:23:21)
    at Module._compile (node:internal/modules/cjs/loader:1218:14) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/node_modules/ts-node/dist/util.js',
    '/usr/local/lib/node_modules/ts-node/dist/index.js',
    '/usr/local/lib/node_modules/ts-node/dist/esm.js',
    '/usr/local/lib/node_modules/ts-node/dist/child/child-loader.js',
    '/usr/local/lib/node_modules/ts-node/child-loader.mjs'
    ]
    }
    To Reproduce
    Steps to reproduce the behavior:
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
The script to install and the packages to run

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Ubuntun]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
    recent:///1c2ee3c73b1a55f7bd8b120d63ed0798
    Smartphone (please complete the following information):
  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

*Originally created by @iamsethsamuel on 2/15/2023* **Describe the bug** I ran the bash preinstall.sh command and I keep getting the error below node:internal/modules/cjs/loader:1039 const err = new Error(message); ^ Error: Cannot find module 'typescript' Require stack: - /usr/local/lib/node_modules/ts-node/dist/util.js - /usr/local/lib/node_modules/ts-node/dist/index.js - /usr/local/lib/node_modules/ts-node/dist/esm.js - /usr/local/lib/node_modules/ts-node/dist/child/child-loader.js - /usr/local/lib/node_modules/ts-node/child-loader.mjs at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15) at Function.resolve (node:internal/modules/cjs/helpers:109:19) at projectLocalResolveHelper (/usr/local/lib/node_modules/ts-node/dist/util.js:117:24) at resolveCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:232:22) at resolveAndLoadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:225:26) at findAndReadConfig (/usr/local/lib/node_modules/ts-node/dist/configuration.js:48:28) at phase3 (/usr/local/lib/node_modules/ts-node/dist/bin.js:254:67) at bootstrap (/usr/local/lib/node_modules/ts-node/dist/bin.js:47:30) at Object.<anonymous> (/usr/local/lib/node_modules/ts-node/dist/child/child-entrypoint.js:23:21) at Module._compile (node:internal/modules/cjs/loader:1218:14) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/lib/node_modules/ts-node/dist/util.js', '/usr/local/lib/node_modules/ts-node/dist/index.js', '/usr/local/lib/node_modules/ts-node/dist/esm.js', '/usr/local/lib/node_modules/ts-node/dist/child/child-loader.js', '/usr/local/lib/node_modules/ts-node/child-loader.mjs' ] } **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** The script to install and the packages to run **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. Ubuntun] - Browser [e.g. chrome, safari] - Version [e.g. 22] recent:///1c2ee3c73b1a55f7bd8b120d63ed0798 **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#2020