admin管理员组文章数量:1302267
I wanted to try staging.vuejs
.html#with-build-tools
and it said that I only need to install it with mand npm init vue@latest
but I got this error :
SPEC
Node : v12.13.0
@vue/cli : v4.5.15
I wanted to try staging.vuejs
https://staging.vuejs/guide/quick-start.html#with-build-tools
and it said that I only need to install it with mand npm init vue@latest
but I got this error :
SPEC
Node : v12.13.0
@vue/cli : v4.5.15
Share Improve this question asked Jan 31, 2022 at 8:57 panji gemilangpanji gemilang 8092 gold badges13 silver badges31 bronze badges 1- have you googled process.env.npm_config_user_agent ?? are you behind a proxy? – mahatmanich Commented Jan 31, 2022 at 9:01
1 Answer
Reset to default 12The error is because your Node version simply doesn't know what ??
means.
The ??
is a null coalescing operator. Looking at the MDN docs for ??
, you can see at the bottom that support for it was only added in Node 14.0. You're using Node v12.13.
There is really no other solution than to upgrade. I advice you to upgrade to the latest LTS version, which as of this writing is 16.
本文标签: javascriptNpm install vuelatest error user agentStack Overflow
版权声明:本文标题:javascript - Npm install `vue@latest` error user agent - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741709951a2393782.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论