This repository was archived by the owner on Oct 12, 2023. It is now read-only.
npm install fails on Windows Subsystem For Linux, Ubuntu 16.04.3 if nodejs-legacy is missing #47
Closed
1 of 3 tasks
Type of issue
Description
npm install fails on package jsonpath@0.2.12
Screenshot
npm ERR! jsonpath@0.2.12 postinstall:
node lib/aesprim.js > generated/aesprim-browser.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the jsonpath@0.2.12 postinstall script 'node lib/aesprim.js > generated/aesprim-browser.js'.
Steps to reproduce
Start WSL Ubuntu Bash on Windows 10
git clone --recursive https://github.com/Azure/azure-iot-pcs-remote-monitoring-dotnet.git
sudo apt install npm # this pulls node etc. but not nodejs-legacy
cd cli
npm install
Expected behavior
npm install succeeds
Current behavior
npm install fails
Known workarounds
apt install nodejs-legacy
Possible solution
Improve documentation
Context and Environment
The text was updated successfully, but these errors were encountered: