You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
Describe the bug
I wanted to have a look at the sources, and did this:
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:Logs (Optional if provided reproduction)
The npm log ends with:
The text was updated successfully, but these errors were encountered: