【npm下载报错】npm ERR! code EUNSUPPORTEDPROTOCOL npm ERR! Unsupported URL Type “xxx:“: xxx:^0.0.1

本文讲述了在尝试安装Element-Plus时遇到的EUNSUPPORTEDPROTOCOL错误,提供了更换npm为pnpm并重新下载依赖的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

{ "name": "univer", "type": "module", "version": "0.7.0", "private": true, "packageManager": "pnpm@10.11.0", "author": "DreamNum Co., Ltd. <developer@univer.ai>", "license": "Apache-2.0", "funding": { "type": "opencollective", "url": "https://opencollective.com/univer" }, "homepage": "https://univer.ai", "repository": { "type": "git", "url": "https://github.com/dream-num/univer" }, "bugs": { "url": "https://github.com/dream-num/univer/issues" }, "engines": { "node": ">=20", "pnpm": ">=10" }, "scripts": { "prepare": "husky", "pre-commit": "lint-staged", "dev": "turbo dev:demo -- --host 0.0.0.0", "dev:libs": "pnpm --filter univer-examples dev:demo-libs", "dev:e2e": "pnpm --filter univer-examples dev:e2e", "use:react16": "tsx ./scripts/react-version-manager.ts --react=16", "use:react19": "tsx ./scripts/react-version-manager.ts --react=19", "lint:types": "turbo lint:types", "test": "turbo test -- --passWithNoTests", "coverage": "turbo coverage -- --passWithNoTests", "build": "turbo build --concurrency=30% --filter=!./common/*", "build:ci": "turbo build --concurrency=100% --filter=!./common/*", "build:demo": "pnpm --filter univer-examples build:demo", "build:e2e": "pnpm --filter univer-examples build:e2e", "serve:e2e": "serve ./examples/local", "test:e2e": "playwright test", "lint": "eslint .", "storybook:dev": "pnpm --filter @univerjs/storybook dev:storybook", "storybook:build": "pnpm --filter @univerjs/storybook build:storybook", "release": "release-it" }, "devDependencies": { "@antfu/eslint-config": "4.13.2", "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@eslint-react/eslint-plugin": "^1.49.0", "@playwright/test": "^1.52.0", "@release-it-plugins/workspaces": "^4.2.0", "@release-it/conventional-changelog": "^9.0.4", "@storybook/react": "8.6.14", "@types/fs-extra": "^11.0.4", "@types/node": "^22.15.21", "@types/react": "^19.1.5", "@types/react-dom": "^19.1.5", "@univerjs-infra/shared": "workspace:*", "@univerjs/design": "workspace:*", "@vitejs/plugin-react": "^4.5.0", "eslint": "9.27.0", "eslint-plugin-format": "^1.0.1", "eslint-plugin-header": "^3.1.1", "eslint-plugin-jsdoc": "^50.6.17", "eslint-plugin-no-barrel-import": "^0.0.2", "eslint-plugin-no-penetrating-import": "^0.0.1", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "fs-extra": "^11.3.0", "husky": "^9.1.7", "lint-staged": "^16.0.0", "posthog-node": "^4.17.2", "react": "^19.1.0", "react-dom": "^19.1.0", "release-it": "^17.11.0", "serve": "^14.2.4", "tsx": "^4.19.4", "turbo": "^2.5.3", "typescript": "^5.8.3", "vitest": "^3.1.4" }, "pnpm": { "onlyBuiltDependencies": [ "esbuild" ] }, "resolutions": { "@types/react": "19.1.5", "@types/react-dom": "19.1.5", "react": "19.1.0", "react-dom": "19.1.0" }, "lint-staged": { "*": "eslint --fix" } } 该如何声明
最新发布
05-27
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值