伙計們,你能幫我解決這個問題嗎?我在為我的專案運行 npm run dev 時遇到了麻煩(node js /express js / type script)在此處輸入代碼。我按照下面的鏈接,但仍然存在錯誤。
PS C:\Users\Yasser\Documents\WorkspaceNodeJS\MeanCRA> npm run dev Debugger 監聽 ws://127.0.0.1:54617/2ce7f883-35f6-424d-80e5-91471fa1f1e8 獲取幫助,請參見https://nodejs.org/ zh/docs/inspector
[email protected] dev C:\Users\Yasser\Documents\WorkspaceNodeJS\MeanCRA 同時 -n "TS, Node" "npx tsc --watch" "nodemon dist/index.js"
'同時' n'est pas reconnu en tant que commande interne
ou externe, un program exécutable ou un fichier de commandes。npm 錯誤!代碼 ELIFECYCLE npm 錯誤!errno 1 npm 錯誤![email protected] 開發人員:concurrently -n "TS, Node" "npx tsc --watch" "nodemon dist/index.js"
npm 錯誤!退出狀態 1 npm ERR!npm 錯誤![email protected] 開發腳本失敗。npm 錯誤!這可能不是 npm 的問題。上面可能有額外的日志輸出。
npm 錯誤!可以在以下位置找到此運行的完整日志:npm ERR!C:\Users\Yasser\AppData\Roaming\npm-cache_logs\2022-02-22T12_57_11_866Z-debug.log
在此處輸入影像描述
我的代碼:
在此處輸入影像描述
在此處輸入影像描述
在此處輸入影像描述
uj5u.com熱心網友回復:
您可能需要在系統中升級 NodeJS。該錯誤表明使用 package.json 至少需要 10 的 NodeJS 版本yargs-parser。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/432073.html
