question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm bugs when building node_modules

See original GitHub issue

Superset version

0.18.2

Question

when I built my node_modules, I got the following tips. I don’t know how can resolve it:

Actual results

ERROR in ./~/_css-loader@0.28.3@css-loader!./~/_less-loader@4.0.3@less-loader/dist!./stylesheets/react-select/select.less
Module build failed: 

        &:hover {
                box-shadow: @select-input-hover-box-shadow;
            ^
Variable @select-input-hover-box-shadow is undefined
      in /Users/Alex/Desktop/superset/superset/assets/node_modules/_react-select@1.0.0-rc.5@react-select/less/control.less (line 64, column 14)
 @ ./stylesheets/react-select/select.less 4:14-162
 @ ./javascripts/css-theme.js

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! superset@0.17.6 build: `NODE_ENV=production webpack --colors --progress`
npm ERR! # **Exit status 2**
npm ERR! 
npm ERR! Failed at the superset@0.17.6 build script 'NODE_ENV=production webpack --colors --progress'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the superset package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=production webpack --colors --progress
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs superset
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls superset
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Alex/Desktop/superset/superset/assets/npm-debug.log

Steps to reproduce

cd superset/assets cnpm install -d //生成依赖包目录node_modules,下载依赖 npm run build //执行webpack打包

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
patrickcnkmcommented, Jun 8, 2017

This was caused by no statement on the variable: select-input-hover-box-shadow.

Please try the following:

  1. open “./superset/superset/assets/node_modules/react-select/less/control.less”
  2. In line 6, add “@import “select.less”;”
  3. Save.
  4. Rerun “npm run build”.

Good luck!

0reactions
mkaladharcommented, Dec 2, 2019

patrickcnkm , thanks ji, its works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm bugs when building node_modules · Issue #2866 - GitHub
Superset version 0.18.2 Question when I built my node_modules, I got the following tips. I don't know how can resolve it: Actual results ......
Read more >
npm install not creating node_modules folder - Stack Overflow
This bug may be caused by many different things. Maybe your global packages are corrupted in some way. 1 Install Node Version Manager...
Read more >
Common errors | npm Docs
Broken npm installation​​ If your npm is broken: On Mac or Linux, reinstall npm. Windows: If you're on Windows and you have a...
Read more >
patch-package | Fix broken node modules instantly - YouTube
patch-package is a tool that has saved me a couple of times when I found a bug in an npm package and needed...
Read more >
How To Use Node.js Modules with npm and package.json
The Node.js Package Manager (npm) is the default and most popular package manager ... bugs , and homepage fields for your package.json file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found