首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >npm错误!不支持的URL类型"workspace:":workspace:*

npm错误!不支持的URL类型"workspace:":workspace:*
EN

Stack Overflow用户
提问于 2021-09-17 08:19:22
回答 1查看 3.2K关注 0票数 4

我正在和gatsby一起创建一个新项目

gatsby new YourProjectName2 https://github.com/Vagr9K/gatsby-advanced-starter

并得到一个错误:

代码语言:javascript
运行
复制
info Creating new site from git:
https://github.com/Vagr9K/gatsby-advanced-starter.git

Cloning into 'YourProjectName2'...
remote: Enumerating objects: 420, done.
remote: Counting objects: 100% (420/420), done.
remote: Compressing objects: 100% (373/373), done.
remote: Total 420 (delta 44), reused 268 (delta 22), pack-reused 0
Receiving objects: 100% (420/420), 7.74 MiB | 11.79 MiB/s, done.
success Created starter directory layout
info Installing packages...

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in:

 ERROR

Command failed with exit code 1: npm install

你知道我该如何处理这个npm ERR! Unsupported URL Type "workspace:": workspace:*吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-10-08 02:35:44

我能够通过使用yarn而不是npm来解决这个问题。

票数 9
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69220042

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档