当前位置:网站首页>npm init [email protected] 构建项目报错SyntaxError: Unexpected token ‘.‘解决办法
npm init [email protected] 构建项目报错SyntaxError: Unexpected token ‘.‘解决办法
2022-08-04 05:16:00 【S筱潇S四维Smile】
dongxiaodeMacBook-Pro:Codes XXX$ npm init [email protected]
npx: 6 安装成功,用时 8.548 秒
file:///Users/XXX/.npm/_npx/30501/lib/node_modules/create-vite/index.js:296
return targetDir?.trim().replace(/\/+$/g, '')
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
at async link (internal/modules/esm/module_job.js:42:21)我的node版本:v12.21.0
更新一下node版本就可以了,下载地址:
边栏推荐
猜你喜欢

数的划分之动态规划

TSF微服务治理实战系列(一)——治理蓝图

【流程图】

【云原生--Kubernetes】Pod资源管理与探针检测

Programming hodgepodge (4)

7-3 LVS+Keepalived Cluster Description and Deployment

详解八大排序

3000字,一文带你搞懂机器学习!

Turn: Management is the love of possibility, and managers must have the courage to break into the unknown

Tactile intelligent sharing - SSD20X realizes upgrade display progress bar
随机推荐
【21天学习挑战赛】顺序查找
入坑软件测试的经验与建议
Write golang simple C2 remote control based on gRPC
[Skill] Using Sentinel to achieve priority processing of requests
FPGA学习笔记——知识点总结
如何将 DevSecOps 引入企业?
读者让我总结一波 redis 面试题,现在肝出来了
《看见新力量》第四期免费下载!走进十五位科技创业者的精彩故事
C Expert Programming Chapter 5 Thinking about Linking 5.2 Advantages of Dynamic Linking
败给“MySQL”的第60天,我重振旗鼓,四面拿下蚂蚁金服offer
sql server如何得到本条记录与上一条记录的差异,即变动值
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.4 使声明与定义相匹配
Get the selected content of the radio box
企业需要知道的5个 IAM 最佳实践
【SemiDrive源码分析】【MailBox核间通信】47 - 分析RPMSG_IPCC_RPC 方式 单次传输的极限大小 及 极限带宽测试
C Expert Programming Chapter 5 Thinking about Chaining 5.6 Take it easy --- see who's talking: take the Turning quiz
应届生软件测试薪资大概多少?
附加:对于“与数据表对应的实体类“,【面对MongoDB时,使用的@Id等注解】和【以前面对MySQL时,使用的@Id等注解】,是不同的;
数的划分之动态规划
What is the salary of a software testing student?