当前位置:网站首页>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版本就可以了,下载地址:
边栏推荐
- How to simplify the automation of modern e-procurement?
- 渗透测试(PenTest)基础指南
- Towards Real-Time Multi-Object Tracking(JDE)
- 7-3 LVS+Keepalived Cluster Description and Deployment
- Will the 2023 PMP exam use the new version of the textbook?Reply is here!
- docker安装mysql与宿主机相差8小时的问题。
- 如何打造一篇优秀的简历
- 力扣题解8/3
- [One step in place] Jenkins installation, deployment, startup (complete tutorial)
- C Expert Programming Chapter 5 Thinking about Linking 5.2 Advantages of Dynamic Linking
猜你喜欢
[One step in place] Jenkins installation, deployment, startup (complete tutorial)
高性能高可靠性高扩展性分布式防火墙架构
el-Select 选择器 底部固定
The difference between px, em, and rem
【评价类模型】Topsis法(优劣解距离法)
[Cocos 3.5.2]开启模型合批
使用Loadrunner进行性能测试
How to simplify the automation of modern e-procurement?
TSF微服务治理实战系列(一)——治理蓝图
For Qixi Festival, I made a confession envelope with code
随机推荐
C Expert Programming Chapter 5 Thinking about Chaining 5.6 Take it easy --- see who's talking: take the Turning quiz
某母婴小程序加密参数解密
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.4 使声明与定义相匹配
【21天学习挑战赛】图像的旋转问题(二维数组)
Structure function exercise
数的划分之动态规划
注意!软件供应链安全挑战持续升级
[Cocos] cc.sys.browserType可能的属性
你以为border-radius只是圆角吗?【各种角度】
Interesting Kotlin 0x0E: DeepRecursiveFunction
C专家编程 第5章 对链接的思考 5.2 动态链接的优点
力扣题解8/3
商城系统APP如何开发 都有哪些步骤
2022年PMP考试延迟了,该喜该忧?
Plus版SBOM:流水线物料清单PBOM
What are the functions of mall App development?
System design. Seckill system
Teenage Achievement Hackers Need These Skills
深度学习环境配置
How to dynamically add script dependent scripts