Hello developer,after the project download dependency ,run ‘npm run build’,but I can’t get the package file.
Software version
node version: v14.16.1
yarn version:1.22.19
computer system : window10
project version : v10.1.0
Thank you very much

The following is the error message:
npm run build

redash-client@11.0.0-dev build D:\测试redash打包\redash-master
yarn clean && yarn build:viz && NODE_ENV=production webpack

yarn run v1.22.19
$ rm -rf ./client/dist/
Done in 0.38s.
yarn run v1.22.19
$ (cd viz-lib && yarn build:babel)
$ yarn type-gen && yarn build:babel:base
$ tsc --emitDeclarationOnly
src/visualizations/box-plot/d3box.ts(317,1): error TS1128: Declaration or statement expected.
error Command failed with exit code 2.
info Visit for documentation about this command.
error Command failed with exit code 2.
info Visit for documentation about this command.
error Command failed with exit code 2.
info Visit for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! redash-client@11.0.0-dev build: yarn clean && yarn build:viz && NODE_ENV=production webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the redash-client@11.0.0-dev build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\穆穆宇\AppData\Roaming\npm-cache_logs\2022-07-29T03_52_35_698Z-debug.log

Redash doesn’t use npm. It uses yarn. Please see the developer guide for the full list of steps.

thankyou for request

1 Like

I can yarn install this project

1.document said node use version 14.16.1 or higher,but when I use 16.7.0,project tell me
error redash-client@11.0.0-dev: The engine “node” is incompatible with this module. Expected version “^14.16.1”. Got “16.7.0”
error Found incompatible module
2.now node use 14.16.1,I have error
yarn install
yarn install v1.22.19
$ cd viz-lib && yarn link --link-folder …/.yarn
yarn link v1.22.19
warning There’s already a package called “@redash/viz” registered. This command has had no effect. If this command was run in another folder with the same name, the other folder is still linked. Please run yarn unlink in the other folder if you want to register this folder.
Done in 0.13s.
[1/5] Validating package.json…
[2/5] Resolving packages…
success Already up-to-date.
$ (cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz
yarn install v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning " > leaflet.markercluster@1.4.1" has incorrect peer dependency “leaflet@~1.3.1”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react@>=15.0.0”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react-dom@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react-dom@>=15.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react-dom@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > use-debounce@3.4.1" has unmet peer dependency “react@>=16.8.0”.
warning " > use-media@1.4.0" has unmet peer dependency “react@^16.8.1”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react@^16.0.0-0”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react-dom@^16.0.0-0”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils@1.13.0” has unmet peer dependency “react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0”.
warning “enzyme-adapter-react-16 > react-test-renderer@16.13.1” has unmet peer dependency “react@^16.13.1”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils > airbnb-prop-types@2.15.0” has unmet peer dependency “react@^0.14 || ^15.0.0 || ^16.0.0-alpha”.
[4/4] Building fresh packages…
Done in 7.76s.
yarn run v1.22.19
$ yarn type-gen && yarn build:babel:base
$ tsc --emitDeclarationOnly
src/visualizations/box-plot/d3box.ts(317,1): error TS1128: Declaration or statement expected.
error Command failed with exit code 2.
info /en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info /en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info /en/docs/cli/install for documentation about this command.
3. about the install step,At most, step three,now step two,I lost something?or the computer is breakdown…help me please

Excuse me,colud you answer my new question?i can’t install the project from yarn

Try using Node 14.16.1

node version is 14.16.1
new problem in project
yarn install
yarn install v1.22.19
$ cd viz-lib && yarn link --link-folder …/.yarn
yarn link v1.22.19
warning There’s already a package called “@redash/viz” registered. This command has had no effect. If this command was run in another folder with the same name, the other folder is still linked. Please run yarn unlink in the other folder if you want to register this folder.
Done in 0.13s.
[1/5] Validating package.json…
[2/5] Resolving packages…
success Already up-to-date.
$ (cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz
yarn install v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning " > leaflet.markercluster@1.4.1" has incorrect peer dependency “leaflet@~1.3.1”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react@>=15.0.0”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react-dom@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react-dom@>=15.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react-dom@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > use-debounce@3.4.1" has unmet peer dependency “react@>=16.8.0”.
warning " > use-media@1.4.0" has unmet peer dependency “react@^16.8.1”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react@^16.0.0-0”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react-dom@^16.0.0-0”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils@1.13.0” has unmet peer dependency “react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0”.
warning “enzyme-adapter-react-16 > react-test-renderer@16.13.1” has unmet peer dependency “react@^16.13.1”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils > airbnb-prop-types@2.15.0” has unmet peer dependency “react@^0.14 || ^15.0.0 || ^16.0.0-alpha”.
[4/4] Building fresh packages…
Done in 6.48s.
yarn run v1.22.19
$ yarn type-gen && yarn build:babel:base
$ tsc --emitDeclarationOnly
$ babel src --out-dir lib --source-maps --ignore ‘src/**/*.test.js’ --copy-files --no-copy-ignored --extensions .ts,.tsx,.js,.jsx
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Successfully compiled 169 files with Babel.
Done in 16.27s.
yarn link v1.22.19
error No registered package found called “@redash/viz”.
error Command failed with exit code 1.

C:\WINDOWS\system32>nvm use 14.16.1
Now using node v14.16.1 (64-bit)

Excuse me,new question ,thank you ,my english is just so so

node version is 14.16.1
new problem in project
yarn install
yarn install v1.22.19
$ cd viz-lib && yarn link --link-folder …/.yarn
yarn link v1.22.19
warning There’s already a package called “@redash/viz” registered. This command has had no effect. If this command was run in another folder with the same name, the other folder is still linked. Please run yarn unlink in the other folder if you want to register this folder.
Done in 0.13s.
[1/5] Validating package.json…
[2/5] Resolving packages…
success Already up-to-date.
$ (cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz
yarn install v1.22.19
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning " > leaflet.markercluster@1.4.1" has incorrect peer dependency “leaflet@~1.3.1”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react@>=15.0.0”.
warning " > react-pivottable@0.9.0" has unmet peer dependency “react-dom@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react@>=15.0.0”.
warning “react-pivottable > react-sortablejs@1.5.1” has unmet peer dependency “react-dom@>=15.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > react-sortable-hoc@1.11.0" has unmet peer dependency “react-dom@^0.14.0 || ^15.0.0 || ^16.0.0”.
warning " > use-debounce@3.4.1" has unmet peer dependency “react@>=16.8.0”.
warning " > use-media@1.4.0" has unmet peer dependency “react@^16.8.1”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react@^16.0.0-0”.
warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency “react-dom@^16.0.0-0”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils@1.13.0” has unmet peer dependency “react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0”.
warning “enzyme-adapter-react-16 > react-test-renderer@16.13.1” has unmet peer dependency “react@^16.13.1”.
warning “enzyme-adapter-react-16 > enzyme-adapter-utils > airbnb-prop-types@2.15.0” has unmet peer dependency “react@^0.14 || ^15.0.0 || ^16.0.0-alpha”.
[4/4] Building fresh packages…
Done in 6.48s.
yarn run v1.22.19
$ yarn type-gen && yarn build:babel:base
$ tsc --emitDeclarationOnly
$ babel src --out-dir lib --source-maps --ignore ‘src/**/*.test.js’ --copy-files --no-copy-ignored --extensions .ts,.tsx,.js,.jsx
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Successfully compiled 169 files with Babel.
Done in 16.27s.
yarn link v1.22.19
error No registered package found called “@redash/viz”.
error Command failed with exit code 1.

It seems you may be trying to install Redash on Windows. For this you should use either WSL or Docker. None of the core team develops on Windows so we don’t have any formal guidance for how to proceed.

ok,thankyou for tell me

Hi. Didn’t you solve this problem with yarn frozen? Have the same :frowning: