I’ve been trying to install sqlite3 module in electron but I always got the error message:
I tried to use the line:
npm install sqlite3 --build-from-source --runtime=electron --target=1.7.6 --dist-url=https://atom.io/download/electron
and it returned the error on the image. How can I solve this?
You have to install Python and add it to your Windows Path. See 'python' is not recognized as an internal or external command.
Related
I am trying to use react-loader-spinner package in my current project Here is the package, but it shows me an error.
When I imported (import "react-loader-spinner/dist/loader/css/react-spinner-loader.css";) in the main app.js the error showed in vs code.
I also followed the documentation nothing worked for me.
I attached the picture of the error
Here is the error
I also have the same problem as I installed the package as follows 'npm install react-loader-spinner --save'.I think there was some package version limitation. Try to install the package with the version below :
"npm install react-loader-spinner#4.0.0 --save" I presume this will resolve above error.
So I'm trying to install a package called phenotrex but I can't install the dependencies correctly.
a sample command I have tried to run is :
phenotrex compute-genotype --out Pse_aerug Pseudomonas_aeruginosa.fna
but it gives the error:
ModuleNotFoundError: No module named 'deepnog.models.deepencoding'
Has anyone else had an issue installing deepnog modules? If so, how do you fix such an issue?
I have built an electron app in Mac OS, when I try to export the package for windows and try to run it throws me following error:
Error Screenshot
My app uses sqlite3, I installed sqlite using following command:
npm install sqlite3 --build-from-source
My NODE_PATH is also set to the node_modules folder, also tried following commands:
npm install --save-dev electron-rebuild
# Every time you run "npm install", run this
./node_modules/.bin/electron-rebuild
But still I am not able to run sqlite3 on windows with electron
sqlite3 relies on node-pre-gyp, so you need to use the workaround provided in electron-rebuild when building sqlite3 for Electron.
I'm new to node.js.
I'm using WebStorm. I work on Windows.
I configured my app to run on node.js and when I try to run it I get this error:"Cannot find module 'merge-descriptors'".
I followed these post trying to solve it: How do I resolve "Cannot find module" error using Node.js?,
module.js:338 throw err in node.js
I ran "del /s /q node_modules" (parallel to "rm -rf node_modules").
Now I'm trying to run "npm install -g" and I'm getting this error:
See screen shot below
I've tried to understand it and to look for information about it in the net to no avail.
Any help will be profoundly appreciated!
I had similar issue installing the module, I tried npm install or npm update but my network would timeout. However what I did is very simple:
npm install merge-descriptors --save
When installing the dependencies for a package you should be using npm install and not using the -g flag.
The g flag, or global is used when installing a package globally, which places them in a direct location that is not accessible by the project.
See https://docs.npmjs.com/files/folders
The specific error you're seeing is that the logged in user doesn't have permission to write to the install directory. This can be overcome with sudo command, ex., sudo npm install. But as others have indicated, if you have to do this then something about your app's configuration could be wrong.
I want to install request module in node.js, but whenever i try installing using npm, it throws several error in my command prompt.
npm install request
When i try to install , it throws some related to proxy error, can anybody help me to sort it out.
Errors are :
I see that you have a problem with connection proxy, so try to install it manually download request package there: https://github.com/kennethreitz/requests
After on the folder execute python setup.py install :)