当前位置:网站首页>nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
2022-04-23 14:01:00 【脱发程序员】
问题描述
nodejs通过require读取本地json文件出现Unexpected token / in JSON at
position
解决方案
读取的json文件中有注释,把注释全删除了就可以了
版权声明
本文为[脱发程序员]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43479772/article/details/119731949
边栏推荐
- Scientists say Australian plan to cull up to 10,000 wild horses doesn’t go far enough
- 2021年秋招,薪资排行NO
- 商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
- Decimal 格式化小数位/DateTime 转换处理
- 函数只执行第一次的执行一次 once函数
- Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"
- scikit-learn構建模型的萬能模板
- [code analysis (5)] communication efficient learning of deep networks from decentralized data
- Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)
- Reading notes: meta matrix factorization for federated rating predictions
猜你喜欢
随机推荐
Leetcode brush question 897 incremental sequential search tree
Jiannanchun understood the word game
cnpm的诡异bug
变长参数__VA_ARGS__ 和 写日志的宏定义
分库分表 & ShardingSphere
AtCoder Beginner Contest 248C Dice Sum (生成函数)
scikit-learn構建模型的萬能模板
自动化的艺术
YARN线上动态资源调优
基于Ocelot的gRpc网关
Scientists say Australian plan to cull up to 10,000 wild horses doesn’t go far enough
金蝶云星空API调用实践
Reading notes: meta matrix factorization for federated rating predictions
freeCodeCamp----time_ Calculator exercise
【项目】小帽外卖(八)
Choreographer full resolution
Kettle--控件解析
Nacos+AspnetCore+Ocelot实战编码
FDFS start
Jenkins construction and use