Unexpected end of JSON input while parsing near '....1","eslint-loader":"'

简介: Unexpected end of JSON input while parsing near '....1","eslint-loader":"'

前端项目使用 npm install vuetify --save 命令时出现如下错误

✗ npm install vuetify --save
npm ERR! Unexpected end of JSON input while parsing near '....1","eslint-loader":"'
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/YW/.npm/_logs/2020-02-18T08_25_12_040Z-debug.log

解决方案

使用 npm cache clean --force 清理 npm 缓存

设置官方源地址 npm set registry https://registry.npmjs.org/

✗ npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.
✗ npm set registry https://registry.npmjs.org/
✗ npm install vuetify --save                  
+ vuetify@2.2.12
...
目录
相关文章
|
JSON JavaScript 前端开发
Unexpected token u in JSON at position 0
这篇文章解释了JavaScript中"Unexpected token u in JSON at position 0"错误的常见原因,通常是由于尝试解析undefined变量导致的,并建议检查是否有变量在JSON.parse()执行时未赋值或值为undefined。
Unexpected token u in JSON at position 0
|
JavaScript
NodeJs——Parsing error: Cannot read file '.../tsconfig.json'.eslint
NodeJs——Parsing error: Cannot read file '.../tsconfig.json'.eslint
185 0
|
JSON Java 数据格式
JSON parse error: Unexpected character (‘t‘ (code 116)): was expecting double-quote to start field n
JSON parse error: Unexpected character (‘t‘ (code 116)): was expecting double-quote to start field n
|
JSON JavaScript 前端开发
【报错】unexpected non-whitespace character after JSON
【报错】unexpected non-whitespace character after JSON
1579 1
|
JSON NoSQL Redis
ruoyi-nbcio发送消息的SerializationException: Could not read JSON: Unexpected character (‘¬‘ (code 172))
ruoyi-nbcio发送消息的SerializationException: Could not read JSON: Unexpected character (‘¬‘ (code 172))
451 0
|
JSON 数据格式
“JSON parse error: Unexpected character (‘1‘ (code 49))的解决方式
“JSON parse error: Unexpected character (‘1‘ (code 49))的解决方式
|
JSON 数据格式
Unexpected token u in JSON at position 0
Unexpected token u in JSON at position 0
239 0
|
JSON Kubernetes 数据格式
error parsing deployment-nginx.yml: error converting YAML to JSON: yaml: line 19 问题解决
error parsing deployment-nginx.yml: error converting YAML to JSON: yaml: line 19 问题解决
724 0
|
1月前
|
JSON API 数据格式
淘宝拍立淘按图搜索API系列,json数据返回
淘宝拍立淘按图搜索API系列通过图像识别技术实现商品搜索功能,调用后返回的JSON数据包含商品标题、图片链接、价格、销量、相似度评分等核心字段,支持分页和详细商品信息展示。以下是该API接口返回的JSON数据示例及详细解析:
|
1月前
|
JSON 算法 API
Python采集淘宝商品评论API接口及JSON数据返回全程指南
Python采集淘宝商品评论API接口及JSON数据返回全程指南