最近好嗎?
我正在使用 Vue.js 開發一個專案。
我安裝npm了幾次,但它一直告訴我檔案node_module夾中沒有包含幾個檔案。
這是我嘗試時錯誤的詳細資訊npm run serve:
錯誤 1
error in ./node_modules/primevue/api/FilterService.js
Syntax Error: no such file or directory, open 'C:\Users\guill\OneDrive\Escritorio\siis_frontend\node_modules\primevue\api\FilterService.js'
錯誤 2
error in ./node_modules/core-js/modules/es.regexp.dot-all.js
Syntax Error: no such file or directory, open 'C:\Users\guill\OneDrive\Escritorio\siis_frontend\node_modules\core-js\modules\es.regexp.dot-all.js'
我應該提到的是,我的一個合作伙伴既沒有這些檔案夾也沒有檔案。但是他正在正確地運行該專案,沒有任何問題。
我能做些什么來解決這個問題嗎?提前致謝...
uj5u.com熱心網友回復:
讓我們從一些基本的故障排除步驟開始。
- 洗掉您的node_modules 檔案夾
- 洗掉package-lock.json -file
- 導航到包含package.json -file的檔案夾
- 運行npm 安裝
讓我知道這是否解決了您的問題。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/398157.html
標籤:javascript 节点.js Vue.js 新产品经理 节点模块
下一篇:如何在節點js中全域匯入檔案
