Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\webapp> S C:\Users\israe\Documents\GitHub\webapp> "check:dependencies": "ts-node -r tsconfig-paths/register -P ./tsconfig.json ./scripts/check-dependencies.ts"
S : El término 'S' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso,
compruebe que dicha ruta es correcta e inténtelo de nuevo.
En línea: 1 Carácter: 1
S C:\Users\israe\Documents\GitHub\webapp> "check:dependencies": "ts-n ...
PS C:\Users\israe\Documents\GitHub\webapp> En línea: 1 Carácter: 21
En : El término 'En' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso,
compruebe que dicha ruta es correcta e inténtelo de nuevo.
En línea: 1 Carácter: 1
Assistant
From the error messages you're dealing with, it's clear you are facing a couple of issues when trying to run a script using PowerShell and npm. Here's a breakdown of the errors and some suggestions on how you might resolve them:
PowerShell Syntax Error:
The syntax error in PowerShell is likely caused by trying to execute something not valid within PowerShell directly. You are trying to define a script directly in PowerShell using , which is not correct PowerShell syntax.
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginar
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -13.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHu
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\w
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\we
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\web
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\weba
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\webap
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\webapp
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
Node.js v20.16.0
PS C:\Users\israe\Documents\GitHub\webapp>
Se produjo un error. Informa de este error indicando los detalles que tienes a continuación.
Informe de GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Últimas 200 claves:
E _ N O T _ F O U N D ' , Enter
Space Space r e q u i r e S t a c k : Space [ Enter
Space Space Space Space ' C : Ctrl+Alt+\ Ctrl+Alt+\ U s e r s Ctrl+Alt+\ Ctrl+Alt+\ i s r a e Ctrl+Alt+\ Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ Ctrl+Alt+\ w e
b a p p Ctrl+Alt+\ Ctrl+Alt+\ s c r i p t s Ctrl+Alt+\ Ctrl+Alt+\ i m a g i n a r y U n c a c h e a b l e R e q u i r e R e s o l v e S c r i p t ' Enter
Space Space ] Enter
} Enter
Enter
N o d e . j s Space v 2 0 . 1 6 . 0 Enter
P S Space C : Ctrl+Alt+\ U s e r s Ctrl+Alt+\ i s r a e Ctrl+Alt+\ D o c u m e n t s Ctrl+Alt+\ G i t H u b Ctrl+Alt+\ w e b a p p > Space
Excepción:
System.ArgumentOutOfRangeException: El valor debe ser mayor que o igual a cero y menor que el tamaño de búfer de consola en dicha dimensión.
Nombre del parámetro: top
Valor actual -18.
en System.Console.SetCursorPosition(Int32 left, Int32 top)
en Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
en Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
en Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
en Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) en Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
en Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
en Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
Token ':' inesperado en la expresión o la instrucción.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Users\israe\Documents\GitHub\webapp> npm run check:dependencies
C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at requireResolveNonCached (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:549:16)
at getProjectSearchDir (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:519:40)
at phase3 (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:267:27)
at bootstrap (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:47:30)
at main (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:33:12)
at Object. (C:\Users\israe\AppData\Roaming\npm\node_modules\ts-node\dist\bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\israe\Documents\GitHub\webapp\scripts\imaginaryUncacheableRequireResolveScript'
]
}
If you are trying to define or modify something in package.json, you should do this directly in your package.json file, not in PowerShell.
Node.js MODULE_NOT_FOUND Error:
This error indicates that the Node.js script ./scripts/check-dependencies.ts cannot be found.
Ensure that the file check-dependencies.ts actually exists at the location C:\Users\israe\Documents\GitHub\webapp\scripts\.
Verify the exact path and filename are correctly spelled and there are no typographical errors.
Incorrect npm script Command:
If your intention is to run a script defined in package.json, you should ensure that it's properly defined in the "scripts" section of package.json like so:
You then correctly use npm run check:dependencies in PowerShell.
PSReadLine Exception:
This error can occur when there's console rendering issues in PowerShell. You can often resolve this by clearing the console with cls or clear, or adjusting the window size.
Ensure that you're not pasting large blocks of text that might exceed the buffer or capacity of the console display.
By following these steps, you should be able to address the issues you're encountering. Make sure that your script paths are correct and that you're using the appropriate tool for the task you aim to accomplish.
Based on the package.json you've provided, it seems you're using a monorepo structure with a focus on Node.js, TypeScript, and potentially a React front-end (given the presence of next build in your scripts).
The scripts section looks well-organized for various development tasks like cleaning up, building, formatting, and running tests. However, you mentioned earlier issues with running a custom script called check:dependencies. Here are a few things you should verify in your setup:
Validation and Suggestions
Path Verification for check:dependencies.ts:
Ensure the file check-dependencies.ts exists at the specified path: ./scripts/check-dependencies.ts.
If the path or file name is incorrect, update it accordingly.
Correct Execution Context:
Since you're using ts-node, ensure that it's installed properly. Given your use of pnpm, ensure that the necessary Node packages are installed using pnpm install.
tsconfig.json Configuration:
Ensure that your tsconfig.json in the root or scripts directory is set up correctly to resolve paths as expected for ts-node.
Dependencies Check:
Ensure all necessary dependencies for ts-node and tsconfig-paths are installed. If ts-node is not globally or locally available, consider adding it to your devDependencies:
Ensure that your TypeScript files are compatible with the version of TypeScript you're using as listed in your devDependencies.
Update Package Manager Versions:
You're specifying a range for pnpm. Make sure your installed version of pnpm aligns with the specified version range.
General Tips
Running Scripts: Use pnpm run [script-name] if you prefer pnpm for better management and execution within your workspace.
Error Handling: Wrap your custom scripts in try-catch to generate more user-friendly error outputs.
Documentation: Document all custom scripts in your scripts section to make it easier for collaborators to understand their purposes.
Execution
Once everything is set up correctly, you should be able to run the check:dependencies script with:
bash
npm run check:dependencies
or
bash
pnpm run check:dependencies
If issues persist after verifying the above points, check for any additional logging or configurations needed in ./scripts/check-dependencies.ts.
C
O
L
O
RG
R
E
E
N
\nWeb
s
t
a
r
t
in
g
o
n
p
or
t
next dev --port $WEB_PORT
else
echo "COLORGREEN\nWebstartingonportPORT_DEFAULTCOLORRESET"echo"{COLOR_GREEN}You can change the starting port using the $WEB_PORT environment variable.\n$COLOR_RESET"
nextProcess.on('exit', (code) => {
console.log(Next.js process exited with code ${code});
});
The script you provided for dev.sh seems to combine two different scripting environments: Bash (for Unix/Linux) and Node.js (JavaScript). They are intertwined as if they were one script, but they should be separated into a Bash script and a Node.js script. Here's how you can organize and execute them correctly:
Bash Script: dev.sh
This script is intended to read environment variables from a .env file and start a Next.js development server on a specified port or a default port.
bash
#!/bin/bash
if [ -f .env ]; then
source .env
fi
PORT_DEFAULT="8099"
COLOR_GREEN="\033[0;32m"
COLOR_RESET="\033[0m"
# Check if WEB_PORT is defined
if [ ! -z "$WEB_PORT" ]; then
echo -e "${COLOR_GREEN}\nWeb starting on port $WEB_PORT\n${COLOR_RESET}"
next dev --port "$WEB_PORT"
else
echo -e "${COLOR_GREEN}\nWeb starting on port $PORT_DEFAULT${COLOR_RESET}"
echo -e "${COLOR_GREEN}You can change the starting port using the \$WEB_PORT environment variable.\n${COLOR_RESET}"
next dev --port "$PORT_DEFAULT"
fi
Node.js Script: create-env.js
Move the Node.js part to a separate JavaScript file, perhaps named create-env.js, and use it to create the .env file.
Run the Node.js script to ensure the .env file is created:
bash
node create-env.js
Run the Bash Script:
After the .env file is created, use:
bash
bash dev.sh
Make sure the next command and Node.js are installed and accessible in your environment.
Additional Tips
Ensure Execution Permissions: Make sure your dev.sh file has the right permissions to be executed. You might need to run:
bash
chmod +x dev.sh
Node.js Dependencies: Ensure that the required Node packages (next in this case) are properly installed in your project. You can do this using your package manager:
bash
pnpm install next
By running these scripts separately, you can effectively manage the Node.js environment and your server setup.