Skip to content
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
holgerkenn opened this issue Nov 14, 2017 · 2 comments
Closed
1 of 3 tasks

Comments

@holgerkenn
Copy link

holgerkenn commented Nov 14, 2017

Type of issue

  • Bug
  • New feature
  • Improvement

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

  • Operating System: WSL (Windows 10 1709), Ubuntu 16.04.3
  • GitHub branch: master
  • .NET Runtime: ...
@holgerkenn holgerkenn changed the title npm install fails on Windows Subsystem For Linux, Ubuntu 16.04.3 npm install fails on Windows Subsystem For Linux, Ubuntu 16.04.3 if nodejs-legacy is missing Nov 14, 2017
@dluc
Copy link
Member

dluc commented Nov 14, 2017

@holgerkenn just double checking, you managed to solve the problem fixing the npm installation in Windows, correct?

@mikelid-zz
Copy link

mikelid-zz commented May 5, 2020

A workaround was posted at LucyBot-Inc/api-spec-converter#132
$sudo npm install -g jsonpath --unsafe-perm=true --allow-root

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants