dash icon indicating copy to clipboard operation
dash copied to clipboard

run 'npm run build' failed

Open SeekPoint opened this issue 3 years ago • 3 comments

I followed the steps in https://github.com/plotly/dash/blob/dev/CONTRIBUTING.md

(dev) PS D:\ghprj\dash> npm run build

build run-s private::build.*

private::build.components python dash/development/update_components.py 'all'

npx lerna exec --concurrency 3 --scope @('all') -- npm i 🛑 lerna notice cli v4.0.0 lerna info versioning independent lerna notice filter including "@('all')" lerna info filter [ "@('all')" ] lerna ERR! EFILTER No packages remain after filtering [ "@('all')" ]

🚨 Failed installing npm dependencies for component packages: 'all' (status=1) 🚨 ERROR: "private::build.components" exited with 1. (dev) PS D:\ghprj\dash>

since I run python3.6.1, so I use: +black==19.10b0 +pylint==2.12.0

SeekPoint avatar Jul 05 '22 11:07 SeekPoint

Oh interesting thanks for the report @loveJasmine! The single quotes are making it through into the string we see in Python when this is run in your shell (so we're getting 'all' instead of all), but in my shell they're stripped and the command runs correctly.

It doesn't look like we actually need the quotes, at least not for the all case, so I can remove them for the next release. If you want to try it now, open package.json and remove those quotes around all on these two lines (or at least the second one, that's the command you're actually running):

https://github.com/plotly/dash/blob/565de531e77e99b339bab7e0838ac51a4a02511a/package.json#L9-L10

alexcjohnson avatar Jul 06 '22 19:07 alexcjohnson

(dev_py380) PS D:\ghprj\dash> git diff diff --git a/package.json b/package.json index 097f6a53..3730839f 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "private::format.renderer": "cd dash/dash-renderer && npm run format", "private::format.dcc": "cd components/dash-core-components && npm run format", "private::initialize.renderer": "cd dash/dash-renderer && npm ci",

  • "private::cibuild.components": "python dash/development/update_components.py 'all' --ci True",
  • "private::build.components": "python dash/development/update_components.py 'all'",
  • "private::cibuild.components": "python dash/development/update_components.py all --ci True",
  • "private::build.components": "python dash/development/update_components.py all", "private::cibuild.renderer": "cd dash/dash-renderer && renderer build",

(dev_py380) PS D:\ghprj\dash> npm run build

build run-s private::build.*

private::build.components python dash/development/update_components.py all

npx lerna exec --concurrency 3 --scope @(dash-core-components|dash-html-components|dash-table) -- npm i 🛑 'dash-html-components' is not recognized as an internal or external command, operable program or batch file.

🚨 Failed installing npm dependencies for component packages: dash-core-components|dash-html-components|dash-table (status=255) 🚨 ERROR: "private::build.components" exited with 1. (dev_py380) PS D:\ghprj\dash>

SeekPoint avatar Jul 08 '22 12:07 SeekPoint

any update?

SeekPoint avatar Jul 27 '22 05:07 SeekPoint

Look like some issue with powershell and the way it passes the arguments to the command. Closing #2166 and #2197 as duplicate, this one has more info.

T4rk1n avatar Mar 10 '23 22:03 T4rk1n

Any update on how to make it working on Windows? Both PowerShell and Command Prompt do not work. It's either the issue: lerna ERR! EFILTER No packages remain after filtering [ "@('all')" ] or after removing the quotes as suggested by Alex, it's 'dash-html-components' is not recognized as an internal or external command,.

I have no clue on how to continue

aGitForEveryone avatar Jun 02 '23 13:06 aGitForEveryone