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

"Node persist error" #493

Closed
majda107 opened this issue Aug 23, 2017 · 5 comments
Closed

"Node persist error" #493

majda107 opened this issue Aug 23, 2017 · 5 comments
Labels

Comments

@majda107
Copy link

majda107 commented Aug 23, 2017

Hello, i am trying to install HAP-NodeJS on my RPi3. I am absolute begginer. When i try to start "Core.js" with "sudo node Core.js" it says this :

pi@raspberrypi:~/HAP-NodeJS $ sudo node Core.js
module.js:491
throw err;
^

Error: Cannot find module 'node-persist'
at Function.Module._resolveFilename (module.js:489:15)
at Function.Module._load (module.js:439:25)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object. (/home/pi/HAP-NodeJS/Core.js:2:15)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)

I have got node version v8.4.0.

pi@raspberrypi:~ $ node -v
v8.4.0

Can anyone help me with this problem? I tried reinstalling node and other stuff.... Nothing is working for me :C

@pdlove
Copy link
Collaborator

pdlove commented Aug 23, 2017

In the Hap-nodejs folder, have you run the command ‘npm install’?

@majda107
Copy link
Author

No, i will try it right now !

@majda107
Copy link
Author

majda107 commented Aug 23, 2017

It thrown this :

pi@raspberrypi:~/HAP-NodeJS $ npm install
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/fs'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2017-08-23T11_37_19_262Z-debug.log

:C

@majda107 majda107 reopened this Aug 23, 2017
@majda107
Copy link
Author

I closed thread by mistake huh sorry....

@KhaosT
Copy link
Contributor

KhaosT commented Sep 6, 2017

@majda107 Looks like a corrupted node install. Please try steps discussed in this thread and see if it fix the npm install issue for you.

@stale stale bot closed this as completed Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants