"Error: Failed to locate couchnode native binding" on nodejs file - node.js

"Error: Failed to locate couchnode native binding" i get this error when i try to run an express.js file on my terminal. I found here an answer for this problem. (https://stackoverflow.com/questions/26451470/trouble-configuring-building-couchnode-on-ubuntu)
I did this in the .gyp file and everything went well. But after a day something broke into my node_modules and i the following error again. I changed again the .gyp file then made again the npm rebuild but nothing changed. I still getting this error. Anyone can give me other solution ?

I ran into the same issue. If you open //node_modules/couchbase/builderror.log file, there is a line that looks for python version "python -V.." and it clearly said that python version SHOULD be > 2.5 and < 3.0
I uninstalled the python 3.4 which was there and installed 2.7.9, then "rm node_modules" --> npm install and voila, no more errors.
Hope this helps.
Cheers!

Related

Can't create a react native empty project, app.json not found

I am currently trying to get started with react native.
I set up the development environment referring to the documentation, but can't even pass the first step and create an empty project.
I am on Windows 11, Node 16.15.1, and NPM 8.12.2
I keep getting the following error when trying to init react-ative project with expo init awesomeProject
Error downloading and extracting template package: Error: npm exited with non-zero code: 1
× Something went wrong while downloading and extracting the template.
Can't read JSON file: D:\crna\awesomeProject\app.json
└─ Cause: Error: ENOENT: no such file or directory, open 'D:\crna\awesomeProject\app.json'
Does anyone has a suggestion ?
Don't really know what is the problem but i found a soluion that might help other people in the same situation as me! like said here just run in CMD instead of GitBash
Use sudo if on linux. And maybe Admin on windows.

The development server returned response error code: 500 - running React Native project

I am trying to run my first application, but this error persists, I already typed the commands:
1.watchman watch-del-all (this is not recognized as an internal or external command)
2.rm -rf node_modules && npm install
3. reset
But nothing worked,
Someone knows how to solve this????? I will appreciate it!!!
For watchman, the command should be: "watchman watch-del-all". It looks like the command you used has a typo, as it is "watchman watche-del-all". Also, check that you have watchman globally installed.
From the traceback it looks like your issue is with the AccessibilityInfo module. Has this been correctly installed?
Would you be able to show more of your traceback?

(Visual Studio Code & NodeJS) - Could not install typings files for JavaScript language features?

I had installed latest NVM and used it to install NodeJS (macOS). Everything was okay, NodeJS ran normally. But when I started VS Code the following message appeared:
Could not install typings files for JavaScript language features. Please ensure that NPM is installed or configure 'typescript.npm' in your user settings
So I tried to find more official information from VS Code team. They said to insert the path to the npm executable file in the typescript.npm setting.
I used $ which npm to find the npm directory :
/Users/myusername/.nvm/versions/node/v8.3.0/bin/npm
but there is no executable file there. I also tried to insert this address into VSCode typescript.npm setting but it did not work.
My question is, where can I find the npm executable file address on macOS to insert into this typescript.npm setting so the error wouldn't pop up anymore ?
Thank you!
Releated VSCode issue: link Maybe it will help you.

"node-gyp build" Fatal error C1083

I'm trying to run a project on my windows 10 (x64) with nodejs.
To run the project, I was given a list of components/packages to install that included Bower, Ruby, Sass, Grunt, MySQL and Redis. Further components included installing node-gyp, node-canvas, Python 2.7 and Microsoft Build Tools
(Link: https://github.com/Automattic/node-canvas/wiki/Installation---Windows ).
After installing all the dependencies, I keep getting an error message :
c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [C:\myeffect\build\binding.vcxproj]
I've done everything I could to resolve the error, re-installed everything, added PATH to python on the System Variables, EVERYTHING.
But the error keeps coming. Please someone Help me what to do.
you can try it, i solved it.
create C:\myeffect\src\binding.cc。 bingd.cc file is empty file。

Cannot find module 'assetmanager'

I'm trying to run the MEAN stack on windows. I've installed all the pre-requisites (I think) but when I try to start the server via the gulp command I get the error:
Error: Cannot find module 'assetmanager'.
IMAGE:
I have tried running npm install assetmanager which run fine but I still get this error.
This is my first time trying to run node on a machine (I should have used a linux box) so go easy on me as I am learning :-).
Any and all help appreciated.
David
I had exactly the same problem on Linux Mint 17.2.
The failing way: This was my first project that I'd generated and I don't think I had all the dependencies installed before I ran the init command (g++ was missing).
I tried the npm install assetmanager command as you did and then install worked. Running gulp after this, it got further but this time I was missing mongoose. I installed that then it couldn't find .../config/env/all so I sylinked the default.js config. Then running gulp again, errorhandler was missing. I figured it shouldn't be this hard so...
The working way: I deleted that failure of a project and init'd a new one and it worked. Unfortunately I'm not sure if the init didn't work the first time but I missed the error/warning or something else caused it. All I can recommend is try creating another project and see if that works.

Resources