当前位置:网站首页>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版本就可以了,下载地址:
边栏推荐
- 深度学习21天——卷积神经网络(CNN):实现mnist手写数字识别(第1天)
- 获取单选框选中内容
- C专家编程 第5章 对链接的思考 5.3 函数库链接的5个特殊秘密
- day13--postman interface test
- 符号表
- 应届生软件测试薪资大概多少?
- Shocked, 99.9% of the students didn't really understand the immutability of strings
- How to view sql execution plan offline collection
- Hangdian Multi-School-Slipper- (tree map conversion + virtual point mapping)
- Will the 2023 PMP exam use the new version of the textbook?Reply is here!
猜你喜欢

少年成就黑客,需要这些技能
![[C language advanced] program environment and preprocessing](/img/ac/a13dd2cc47136d4938b6fc7fad660c.png)
[C language advanced] program environment and preprocessing

7-3 LVS+Keepalived Cluster Description and Deployment

触觉智能分享-SSD20X实现升级显示进度条

The idea setting recognizes the .sql file type and other file types

How to keep the source code confidential in the development under the burning scenario

el-Select selector bottom fixed

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

The symbol table

See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
随机推荐
OpenGL绘制圆
使用Loadrunner进行性能测试
Tactile intelligent sharing - SSD20X realizes upgrade display progress bar
【云原生--Kubernetes】Pod资源管理与探针检测
关于yolo7和gpu
go module的介绍与应用
SLSA 框架与软件供应链安全防护
数的划分之动态规划
败给“MySQL”的第60天,我重振旗鼓,四面拿下蚂蚁金服offer
See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
C专家编程 第5章 对链接的思考 5.6 轻松一下---看看谁在说话:挑战Turning测验
Mini program + e-commerce, fun new retail
信息学奥赛一本通 1312:【例3.4】昆虫繁殖
How to keep the source code confidential in the development under the burning scenario
【流程图】
使用Patroni回调脚本绑定VIP的坑
Get the selected content of the radio box
你以为border-radius只是圆角吗?【各种角度】
力扣题解8/3
腾讯136道高级岗面试题:多线程+算法+Redis+JVM