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.

Builds Fail on WSL

See original GitHub issue

I am having issues building anything with node-gyp in Ubuntu 16.04 under Windows Subsystem for Linux. Is it my error or is node-gyp known to not work under WSL?

I have the following installed: node-gyp 3.6.1 make (4.1-6) gcc 4:5.3.1-1ubuntu1 npm 3.10.10 nodejs v6.10.3 python 2.7

I have set the python path using npm config set python /usr/lib/python2.7

I have verified that Python is installed in that location.

I attempted to install sharp using the command line sudo npm install sharp --save

I have attached the debug log. sharp.zip

I also saw failures when trying to install bcrypt with npm install --build-from-source bcrypt bcrypt.zip

Any advice would be appreciated. Thanks.

Issue Analytics

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

github_iconTop GitHub Comments

61reactions
Dogyunjeongcommented, Jun 7, 2020

I have same issue and

  1. npm install -g npm
  2. npm install -g node-gyp make

solved problem. I am not sure what caused problem. but works fine now.

10reactions
kevingilbert100commented, Dec 30, 2017

This is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Windows Subsystem for Linux
Running Windows commands fails inside a distribution · In your WSL distribution run echo $PATH . · Check profile settings with cat /etc/profile...
Read more >
Build fails on Windows Subsystem for Linux (WSL) #81
It's a discrepancy between WSL and Docker for Windows. WSL mounts the C: drive at /mnt/c and Docker's base VM mounts it at...
Read more >
WSL builds fail if you try to have the build folder under /home
Your issue is that the cache generated by wsl is stored in the “/mnt/c/Users/v-rubyzhang/source/repos/CMakeProject97” directory, and you want to store it in the ......
Read more >
Why is my Vim build failing on WSL?
I'm running Ubuntu 20.04.4 under WSL2 on Windows 11. I've cloned https://github.com/vim/vim.git in the environment. (The latest commit is tagged ...
Read more >
Running gradle project in windows WSL build failed with c:/ ...
Running gradle project in windows WSL build failed with c:/Users/giova/AppData/Local/Temp/output.paths (No such file or directory). Duplicates 1.
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