簡體   English   中英

vue create with e2e 顯示奇怪的錯誤

[英]vue create with e2e showing strange error

我嘗試使用 vue create 創建項目,但我一直收到以下錯誤

✨  Creating project in C:\Users\....
⚙️  Installing CLI plugins. This might take a while...

npm ERR! Unexpected end of JSON input while parsing near '..."^5.8.23","babel-tape'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HariC\AppData\Roaming\npm-cache\_logs\2020-08-01T13_14_04_441Z-debug.log
 ERROR  command failed: npm install --loglevel error

在創建應用程序時,我選擇了除 typescript 支持和 es-lint 之外的所有內容。 可能是什么原因?

嘗試清除緩存:

npm cache clean --force

錯誤可能是由於緩存損壞。 參考 - https://stackoverflow.com/a/47896884/9640177

npm 緩存清理 --force

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM