noia-network / noia-node-cli

NOIA node headless (terminal) sample for noia-node.
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Cannot find module 'noia-node' #7

Closed rodrigosobrero closed 6 years ago

rodrigosobrero commented 6 years ago

I'm getting this error when I run npm start:

Error: Cannot find module 'noia-node'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/noia-node-terminal/index.js:8:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

I also tried npm install noia-node but still not working.

Node.js v8.10.0 npm v3.5.2

MartynasZilinskas commented 6 years ago

What version are you using? Currently, the latest version is v0.1.2. You can download the zip here.

rodrigosobrero commented 6 years ago

I did git clone https://github.com/noia-network/noia-node-terminal.git. Same error when I download the v0.1.2: Cannot find module 'noia-node'.

I have two warnings when I run npm install:

npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN lifecycle scrypt@6.0.3~preinstall: cannot run in wd %s %s (wd=%s) scrypt@6.0.3 node node-scrypt-preinstall.js /root/noia-node-terminal-0.1.2/node_modules/.staging/scrypt-28d02dc5
rodrigosobrero commented 6 years ago

It was the npm version. Updated to the last version (6.2.0) and now it's working.