Wednesday 12 April 2017

Running Node on WSL.

Is anyone else trying to do this?The Windows 10 Creators Update went live yesterday, which includes some major updates to WSL (Ubuntu on Windows). So I figured I'd try installing Node and see how things go.Node actually installed correctly, and it appears to run fine. But npm is another story, running npm -v says:: not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm: : not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm: /mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting "in") One of the updates to WSL is the ability to launch Windows executables from WSL. It's obviously trying to run the npm that's installed in Windows. Which is strange, because whereis npm returns /usr/bin/npm as the first result (and the Windows npm as the next). In fact, if I run /usr/bin/npm, it works, but obviously I shouldn't have to do that.

Submitted April 12, 2017 at 08:37PM by EntroperZero

5 comments:

  1. It’s really great information for becoming a better Blogger. Keep sharing, Thanks...

    Learn Hadoop Training from the Industry Experts we bridge the gap between the need of the industry. Softgen Infotech provide the Best Hadoop Training in Bangalore with 100% Placement Assistance. Book a Free Demo Today.
    Big Data Analytics Training in Bangalore
    Tableau Training in Bangalore
    Data Science Training in Bangalore
    Workday Training in Bangalore

    ReplyDelete