"node-gyp build" Fatal error C1083 - node.js

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。

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.

Npm package install failure

Trying to learn nodejs following a few articles. I'm able to download and make sure its working using a video from youtube. But now I'm trying to incorporate that in Visual Studio .net 4.5.2. I've tried to added it via new get package manager and the PM console each come back to same error.
"Install-Package: The specified path, file or both are to long. Less than 260 and directory name less than 248" Self explanatory, found this article
So I tried:
npm-flatten
npm-dedupe
also Enable Win32 long paths
It starts adding package npm 3.5.2 files and folders then bombs out and spits the same error. What else am I missing in order to get this package installed?
Thanks for any help

I am unable to deploy my platypi demo app

I have been following the instructions on how to get started with platypi on https://platypi.io/docs/getting-started.
Everything was going well, until I tried to create the deployment package (https://platypi.io/docs/getting-started/1251/Deploy-to-a-Device).
When I run the node command "grunt build-cordova" I get the following error: "Error: Failed to run 'ant -version'...". So I tried installing ant first by entering the command "npm install node-ant".
However, when I do so, I get an error saying that I need to have Visual Studio 2010 build tools installed.
I do not want to install VS 2010 just to install ant, since I already have VS 2013 and 2015 installed.
My question is: How can I get the grunt command "grunt build-cordova" to work without installing VS 2010?
Thank you.
Did you try installing Ant directly from the site?
Download the binary and put it somewhere on your computer (I used C:\apache-ant-1.9.4), then add the path to the installed location to your PATH environment variable. You can find out how to do that here, the instructions are for java, but it works for other variables.
I added an ANT_HOME environment variable with a value of "C:\apache-ant-1.9.4". Then I edited my Path to include %ANT_HOME%; at the end.
Afterwards you will need to restart any open command prompts. You may also have to run npm uninstall node-ant to avoid conflicts.

"Error: Failed to locate couchnode native binding" on nodejs file

"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!

Error in installing/ running serialport in node.js

Have been trying to installing/ running 'serialport' on Node.js but it fails.
First I tried installing the current version 0.7.3 and it fails with the following errors
Waf: Leaving directory `/home/anand/node/node_modules/serialport/serialport_native/build'
'build' finished successfully (0.237s)
cp: cannot stat `build/Release/serialport_native.node': No such file or directory
Next I tried installing version 0.6.7. It installs correctly but when I try to run the examples I get the following error
Error: Unable to load shared library /home/anand/node/node_modules/serialport/serialport_native.node
I have checked that the library exists and has read/write/execute permissions.
I have also checked with different versions of Node including 0.6.4, 0.6.10

Resources