Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build with npm (Unsupported URL Type "link:") #1800

Closed
2 tasks done
akauppi opened this issue Jan 29, 2021 · 3 comments
Closed
2 tasks done

Does not build with npm (Unsupported URL Type "link:") #1800

akauppi opened this issue Jan 29, 2021 · 3 comments

Comments

@akauppi
Copy link
Contributor

akauppi commented Jan 29, 2021

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)

Describe the bug

I wanted to have a look at the sources, and did this:

$ git clone git@github.com:vitejs/vite.git
$ cd vite
$ npm install
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "link:": link:./exports-path

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/asko/.npm/_logs/2021-01-29T15_39_50_219Z-debug.log

There are no instructions in the README as to how to set up the build environment, so I expect everything should work.

Reproducible

Commit d216da0e59bd5ab05a8eac38e99e9b6dd9461478

System Info

  • vite version:
  • Operating System: macOS 11.1 + Homebrew
  • Node version: 15.5.0
  • Package manager: npm 7.3.0

Logs (Optional if provided reproduction)

The npm log ends with:

...
4201 silly fetch manifest lodash-es@4.17.20
4202 http fetch GET 304 https://registry.npmjs.org/lodash-es 27ms (from cache)
4203 silly placeDep ROOT lodash-es@4.17.20 OK for: optimize-deps-linked@0.0.0 want: ^4.17.20
4204 timing idealTree:packages/playground/optimize-deps-linked Completed in 29ms
4205 timing idealTree Completed in 17110ms
4206 timing command:install Completed in 17115ms
4207 verbose stack Error: Unsupported URL Type "link:": link:./exports-path
4207 verbose stack     at unsupportedURLType (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:200:15)
4207 verbose stack     at fromURL (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:258:13)
4207 verbose stack     at Function.resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:77:12)
4207 verbose stack     at Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:845:22)
4207 verbose stack     at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:796:36)
4207 verbose stack     at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:833:31)
4207 verbose stack     at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:209:7)
4207 verbose stack     at async Promise.all (index 1)
4207 verbose stack     at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:123:5)
4207 verbose stack     at async install (/usr/local/lib/node_modules/npm/lib/install.js:38:3)
4208 verbose cwd /Users/asko/Temp/vite
4209 verbose Darwin 20.2.0
4210 verbose argv "/usr/local/Cellar/node/15.5.0/bin/node" "/usr/local/bin/npm" "install"
4211 verbose node v15.5.0
4212 verbose npm  v7.3.0
4213 error code EUNSUPPORTEDPROTOCOL
4214 error Unsupported URL Type "link:": link:./exports-path
4215 verbose exit 1
@akauppi akauppi changed the title Does not build (Unsupported URL Type "link:") Does not build with npm (Unsupported URL Type "link:") Jan 29, 2021
@akauppi
Copy link
Contributor Author

akauppi commented Jan 29, 2021

Changing 4 occurrences of link: to file: makes the npm install succeed. However, I think it's implicitly intended that people use yarn. It would be good to mention this, eg. in Contributing Guide.

@kolchurinvv
Copy link

This is still yarn only. kinda bummer.

@github-actions
Copy link

This issue gets locked because it has been closed for more than 14 days.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants