Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code, silently failing? #7

Open
NickCarton opened this issue Sep 5, 2019 · 5 comments
Open

Example code, silently failing? #7

NickCarton opened this issue Sep 5, 2019 · 5 comments

Comments

@NickCarton
Copy link

Hi,

I've been trying out neonplanaria and have been going through the documentation here.

However, when copying the example WeatherSV planaria code, I run node index.js and nothing happens, no console.logs are executed nor does anything else get invoked.

Do you have any idea what might be the issue?

Node Version: v12.9.1
NPM Version: 6.11.2
Package Manager: yarn version 1.13.0

Running on WSL Ubuntu 18.04.2 LTS.
Also tested on Powershell on Windows 10

@unwriter
Copy link
Collaborator

unwriter commented Sep 5, 2019

@NickCarton can you try cloning this and see if that works?

https://github.com/interplanaria/neonlevel

@NickCarton
Copy link
Author

So I found that the npm install hangs if make isnt installed, so now it works fine.

I ran the example and it runs like a charm, so I guess something is wrong with version 0.0.39 of neonplanaria? as 0.0.15 works fine.

I upgraded neonplanaria to 0.0.39 in the neonlevel example and it hung. I'll try putting all this into a docker container and see if I can replicate again.

@NickCarton
Copy link
Author

Might be an issue with WSL or maybe my node install, but I haven't had any issues like this in other projects, I'll dig around further.

@NickCarton
Copy link
Author

NickCarton commented Sep 6, 2019

Strange, I have it working fine within a docker container with the following Dockerfile


RUN apk add make automake git python g++
 
WORKDIR /app

COPY ./package.json .
COPY ./package-lock.json .

RUN yarn

COPY . .

RUN node index

However, if you swap out yarn for npm install, I get an issue when it tries to clone

npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b master git://github.com/bitpay/node-buffers.git /root/.npm/_cacac
he/tmp/git-clone-4fa9bcfb
npm ERR! warning: templates not found in /tmp/pacote-git-template-tmp/git-clone-da37bef4
npm ERR! fatal: The remote end hung up unexpectedly```

@NickCarton
Copy link
Author

Just got back and tried out some other filters, with one working in 0.0.15.
After testing out the filter in 0.0.15 it worked fine, so I upgraded to 0.0.39.

the code works after waiting a few minutes, it looks like the code hangs but continues to log out after a few minutes.

However, I only have it working when using yarn, not npm install

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

No branches or pull requests

2 participants