From the error messages you’re dealing with, it’s clear you are facing a couple of…
- User
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 "check:dependencies": "ts-node ...", which is not correct PowerShell syntax.
- 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:
“scripts”: { “check:dependencies”: “ts-node -r tsconfig-paths/register -P ./tsconfig.json ./scripts/check-dependencies.ts” }
- 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. { “name”: “@marblism/monorepo”, “version”: “4.0.0”, “description”: “”, “main”: “index.js”, “type”: “module”, “scripts”: { “clean”: “npx rimraf node_modules && npx rimraf dist”, “init”: “pnpm install && pnpm run --filter server init ; pnpm run --filter web init”, “dev”: “pnpm run --parallel dev”, “build”: “pnpm run --filter server build”, “start”: “pnpm run --parallel start”, “ensure”: “pnpm -v || npm install -g pnpm@9.9.0 && pnpm install”, “format”: “prettier --write “**/*.{ts,tsx}””, “lint”: “eslint .”, “web:build”: “next build”, “test”: “jest”, “prepublishOnly”: “npm run build && npm test”, “check:dependencies”: “ts-node -r tsconfig-paths/register -P ./tsconfig.json ./scripts/check-dependencies.ts” }, “keywords”: [], “author”: “”, “license”: “ISC”, “dependencies”: { “@deck.gl/geo-layers”: “^9.0.29”, “@eslint/eslintrc”: “^3.1.0”, “@nestjs/axios”: “^3.0.3”, “axios”: “^1.7.7”, “pnpm”: “^9.10.0” }, “devDependencies”: { “@eslint/js”: “^9.9.1”, “@typescript-eslint/eslint-plugin”: “^8.5.0”, “@typescript-eslint/parser”: “^8.5.0”, “eslint”: “^9.10.0”, “eslint-plugin-react”: “^7.35.2”, “globals”: “^15.9.0”, “prettier”: “^3.3.3”, “rimraf”: “^6.0.1”, “typescript”: “^5.5.4”, “typescript-eslint”: “^8.5.0” }, “engines”: { “node”: “>=20.11.0”, “npm”: “>=10.2.4”, “vscode”: “^1.22.0”, “pnpm”: “>=9.9.0 <10” } } 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).
- Assistant
Based on the detailed description and understanding of the setup you've provided, it seems you've organized a comprehensive development environment using npm and pnpm with specific scripts aimed at maintaining and building a Node.js project. Here's a concise checklist and troubleshooting guide:
- User
{ "extends": "../../tsconfig.json", "compilerOptions": { "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "strict": true, "noImplicitAny": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "allowSyntheticDefaultImports": true, "jsx": "react-jsx", "skipLibCheck": true, "forceConsistentCasingInFileNames": true }, "include": [ "next-env.d.ts", "/*.ts", "/.tsx", ".next/types/**/.ts" ], "exclude": [ "node_modules" ] }
- Assistant
- User
C:\Users\israe\Documents\GitHub\webapp\apps\web\tsconfig.json{ "extends": "../../tsconfig.json", "compilerOptions": { "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "strict": false, "noImplicitAny": false, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "allowSyntheticDefaultImports": true, "jsx": "react-jsx", "strictNullChecks": false, "skipLibCheck": true }, "include": [ "next-env.d.ts", "/*.ts", "/.tsx", ".next/types/**/.ts" ], "exclude": [ "node_modules" ] }
- Assistant
- User
C:\Users\israe\Documents\GitHub\webapp\apps\server\tsconfig.json { "extends": "../../tsconfig.json", "compilerOptions": { "target": "es5", "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "strict": true, "noImplicitAny": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "allowSyntheticDefaultImports": true, "jsx": "react-jsx", "skipLibCheck": true, "forceConsistentCasingInFileNames": true }, "include": [ "next-env.d.ts", "/*.ts", "/.tsx", ".next/types/**/.ts" ], "exclude": [ "node_modules" ] }
{ "emitDecoratorMetadata": true, "experimentalDecorators": true }
- Assistant
- User
- Assistant
- User
Variables de usuario para israe Variable Valor ChocolateyLastPathUpdate 133665106064828592 GIT_ASKPASS c:\Users\israe\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh NVM_HOME C:\Users\israe\AppData\Roaming\nvm NVM_SYMLINK CProgram Files\nodejs OneDrive C:\Users\israe\OneDrive OneDriveConsumer C:\Users\israe\OneDrive Path PNPM_HOME C:\Users\israe\AppData\Roaming\npm TEMP C.\Users\israe\AppData\Local\Temp TMP C\Users\israe\AppData\Local\Temp VSCODE_GIT_ASKPASS_EXTR. VSCODE_GIT_ASKPASS_MAINc:\Users\israe\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js VSCODE_GIT_ASKPASS_NODEC:\Users\israe\AppData\Local\Programs\Microsoft VS Code\Code.exe VSCODE_GIT_IPC_HANDLE .Vpipe\vscode-git-6c63f489f6-sock Nuevo... Editar... Eliminar Variables del sisterma Variable Valor ^ NVM_SYMLINK C\Program Files\nodejs os Windows_NT CAWindowsystem32;CWindows;CWindowSystem32Wbem Path n32\OpenSSH:C\Pr PATHEXT .COM:EXE.BAT.CMD.VBS;.VBE.JSJSE.WSFWSH.MSC.PYPYW PROCESSOR_ARCHITECTURE AMD64 PROCESSOR_IDENTIFIER Intel64 Family 6 Model 165 Stepping 5, Genuinelntel PROCESSOR_LEVEL PROCESSOR_REVISION a505 PSModulePath %ProgramFiles%\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules RIsSvcPort 22112 TEMP C:\Windows\TEMP TMP C:\Windows\TEMP USERNAME SYSTEM VSCODE_GIT_ASKPASS_EXTR. VSCODE_GIT_ASKPASS_NODEC:\Users\israe\AppData\Local\Programs\Microsoft VS Code\Code.exe VSCODE_GIT_IPC_HANDLE .\pipe\vscode-git-6c63f489f6-sock windir C:\Windows 2 Nueva... Editar.. Eliminar
- Assistant
- User
step by step for clean
- Assistant
- User
in mi user what unnecessary and incorrect entries need remove ?
- Assistant
- User
dimecual borrar o editrar Variables de usuario para israe Variable Valor ChocolateyLastPathUpdate 133665106064828592 GIT_ASKPASS c:\Users\israe\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh NVM_HOME C:\Users\israe\AppData\Roaming\nvm NVM_SYMLINK CProgram Files\nodejs OneDrive C:\Users\israe\OneDrive OneDriveConsumer C:\Users\israe\OneDrive Path PNPM_HOME C:\Users\israe\AppData\Roaming\npm TEMP C.\Users\israe\AppData\Local\Temp TMP C\Users\israe\AppData\Local\Temp VSCODE_GIT_ASKPASS_EXTR. VSCODE_GIT_ASKPASS_MAINc:\Users\israe\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js VSCODE_GIT_ASKPASS_NODEC:\Users\israe\AppData\Local\Programs\Microsoft VS Code\Code.exe VSCODE_GIT_IPC_HANDLE .Vpipe\vscode-git-6c63f489f6-sock Nuevo… Editar… Eliminar Variables del sisterma Variable Valor ^ NVM_SYMLINK C\Program Files\nodejs os Windows_NT CAWindowsystem32;CWindows;CWindowSystem32Wbem Path n32\OpenSSH:C\Pr PATHEXT .COM:EXE.BAT.CMD.VBS;.VBE.JSJSE.WSFWSH.MSC.PYPYW PROCESSOR_ARCHITECTURE AMD64 PROCESSOR_IDENTIFIER Intel64 Family 6 Model 165 Stepping 5, Genuinelntel PROCESSOR_LEVEL PROCESSOR_REVISION a505 PSModulePath %ProgramFiles%\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules RIsSvcPort 22112 TEMP C:\Windows\TEMP TMP C:\Windows\TEMP USERNAME SYSTEM VSCODE_GIT_ASKPASS_EXTR. VSCODE_GIT_ASKPASS_NODEC:\Users\israe\AppData\Local\Programs\Microsoft VS Code\Code.exe VSCODE_GIT_IPC_HANDLE .\pipe\vscode-git-6c63f489f6-sock windir C:\Windows 2 Nueva… Editar… Eliminar
- Assistant
- User
Propiedades del sistema Se descartarán los cambios realizados en este cuadro de diálogo y se editará este valor como texto en su lugar. Aceptar Cancelar X
- Assistant