Closed michaelai0313 closed 2 years ago
Issue-Label Bot is automatically applying the label #bug
to this issue, with a confidence of 0.62. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
npm ci
help ? (it nukes /node_modules)
npm ci
help ? (it nukes /node_modules)
when I used npm install,it failed all the time I use yarn to install successfully,but build failed all the time
i hava the same issue
can you share the errors that you saw when you ran npm install
? It looks like you don't have babel/preset-react
installed correctly.
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\lx\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm@6.14.8
3 info using node@v12.16.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle superset@0.38.0~prebuild: superset@0.38.0
6 info lifecycle superset@0.38.0~build: superset@0.38.0
7 verbose lifecycle superset@0.38.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle superset@0.38.0~build: PATH: C:\Users\lx\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\lx_workspace\pythonspace\workspace5\incubator-superset-0.38.0\superset-frontend\node_modules.bin;E:\lx_workspace\xshell\;C:\Windows\System32;c:\windows\system32\WindowsPowershell\v1.0;E:\lx_workspace\jdk_dir\jdk1.8.0_191\bin;E:\lx_workspace\jdk_dir\jdk1.8.0_191\jre\bin;C:\Users\lx\Android\Sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;E:\lx_soft\Tesseract-OCR;E:\lx_workspace\pythonspace\sdk3.7.7;E:\lx_workspace\pythonspace\sdk3.7.7\Scripts;C:\Users\lx\AppData\Roaming\npm
9 verbose lifecycle superset@0.38.0~build: CWD: E:\lx_workspace\pythonspace\workspace5\incubator-superset-0.38.0\superset-frontend
10 silly lifecycle superset@0.38.0~build: Args: [
10 silly lifecycle '/d /s /c',
10 silly lifecycle 'cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors'
10 silly lifecycle ]
11 silly lifecycle superset@0.38.0~build: Returned: code: 2 signal: null
12 info lifecycle superset@0.38.0~build: Failed to exec build script
13 verbose stack Error: superset@0.38.0 build: cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors
13 verbose stack Exit status 2
13 verbose stack at EventEmitter.cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors
22 error Exit status 2
23 error Failed at the superset@0.38.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
I hava the same issue in windows, adding this might help.
adding path.resolve(__dirname,'./src')
below line 338 in webpack.config.js solved it thanks !!! @lybtt
This seems to be windows specific. It uses \
in file paths instead of /
, breaking the regular expressions in Webpack's loader match rules.
run “npm run build” failid in superset-frontend
Actual results