Code Monkey home page Code Monkey logo

Comments (4)

nekuz0r avatar nekuz0r commented on July 16, 2024

Can you attach the install.log file please, should be in node_modules/wiring-pi

from wiringpi-node.

osmoma avatar osmoma commented on July 16, 2024

My $HOME has no node_modules/ directory. I checked this several times.
$ find $HOME -name install.log
(not found)

However I found some wiring-pi directories. The first one is empty.
$ find . -name wiring-pi
./.npm/registry.npmjs.org/wiring-pi
./.npm/wiring-pi


$ tree ./.npm/registry.npmjs.org/wiring-pi
0 directories, 0 files


$ tree ./.npm/wiring-pi
./.npm/wiring-pi
└── 2.1.0
├── package
│   └── package.json
└── package.tgz

Thanx for your reply. moma.


EDIT: Just to test. I have now removed Node 4.x from my system.
0) I removed the Node 4.x repository from the system.

  1. Removed all node* and npm packages from the system.
    $ sudo apt remove --purge nodejs npm node*
    $ sudo apt update

  2. I re-installed everything from Ubuntu 15.10 repos.
    $ sudo apt install nodejs npm nodejs-legacy

Now I have these versions.
$ nodejs --version
v0.10.25
$ node --version
v0.10.25
$ npm --version
1.4.21

Also, I created a new user (test) and tried to npm wiring-pi.

$ sudo npm install wiring-pi
Bot no success. It fails with a SIMILAR error message (please see errors.zip).
Error with nodejs v0.10.25 and npm 1.4.21.zip

Now it created node_modules/ folder, but is is empty (screenshot attached).

screenshot from 2016-01-05 19-17-33

EDIT:
I made a test with Nodejs v5.3.0. It prints a similar error message.
Errors with nodejs v5.3.0 and npm 3.3.12.zip

The most important thing is that wiring-pi works on my Raspberry Pi2/Rasbian distro so I can get my irrigation system to work. RPi will control relays with solenoid valves. I want to add a simple GUI for watering times and zones. Thatºs all.
Many thanks for your work!
Please tell me if I can help with testing.

from wiringpi-node.

osmoma avatar osmoma commented on July 16, 2024

SOLVED.

I downloaded the source code from Github and run the
$ cd wiring-pi-master
$ bash ./install.sh

$ cat install.log
./install.sh: 43: ./install.sh: git: not found.
LOL ;-)

$ sudo apt install git
$ sudo npm install wiring-pi
done.
Enjoy !
success1.zip

Please add "git" to dependencies or give a better error message.
Thanx.

from wiringpi-node.

nekuz0r avatar nekuz0r commented on July 16, 2024

Ok, great, nice you figured it out.

from wiringpi-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.