当前位置:网站首页>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版本就可以了,下载地址:
边栏推荐
猜你喜欢
信息学奥赛一本通 1312:【例3.4】昆虫繁殖
7-2 LVS+DR Overview and Deployment
擎朗智能全国研发创新中心落地光谷:去年曾获2亿美元融资
3面头条,花7天整理了面试题和学习笔记,已正式入职半个月
There is an 8 hour difference between the docker installation of mysql and the host.
See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
编程大杂烩(三)
高性能高可靠性高扩展性分布式防火墙架构
看DevExpress丰富图表样式,如何为基金公司业务创新赋能
docker安装mysql与宿主机相差8小时的问题。
随机推荐
static在不同位置定义变量居然还有不同的含义?
某母婴小程序加密参数解密
C Expert Programming Chapter 5 Thinking about Linking 5.3 5 Special Secrets of Library Linking
ADC噪声全面分析 -03- 利用噪声分析进行实际设计
DataTable使用Linq进行分组汇总,将Linq结果集转化为DataTable
C专家编程 第5章 对链接的思考 5.4 警惕Interpositioning
入坑软件测试的经验与建议
附加:对于“与数据表对应的实体类“,【面对MongoDB时,使用的@Id等注解】和【以前面对MySQL时,使用的@Id等注解】,是不同的;
7-2 LVS+DR Overview and Deployment
Hangdian Multi-School-Slipper- (tree map conversion + virtual point mapping)
编程大杂烩(四)
How to view sql execution plan offline collection
DataTable uses Linq for grouping and summarization, and converts the Linq result set into DataTable
Turn: Management is the love of possibility, and managers must have the courage to break into the unknown
How to dynamically add script dependent scripts
share总结
SLSA 框架与软件供应链安全防护
注意!软件供应链安全挑战持续升级
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.1 数组并非指针
你以为border-radius只是圆角吗?【各种角度】