I'm using macOS
One of the dependencies in my project is ical library.
But build phase is failing because of the conflict with icu4c library which comes together with node installation.
But I also need node on my machine
Is there a way to install node without icu4c library?
Related
I've recently started Tailwind CSS where I've to install Tailwind into my system, not knowing the fact that my system has to contain Node.js preinstalled in my system I proceeded to paste npm install -D tailwindcss postcss autoprefixer in the terminal but it threw so many errors. After some research, I found about Node.js. Though my problem is solved I want to know why it happened.
The reason it needs nodejs is as simple as, you need to have a nodejs to have/use the npm. Nothing more than that.
Diving into what you are doing here: By running npm install tailwind, you are installing a node package called tailwind with a package management tool called npm. Nodejs is the javascript environment that gonna execute it later when you use it
Think of the the relationshipi between pip and python. When you try to install a python package, you use a python package manager called pip. What you are doing here is, you need tailwind css module, now you need node package manager (NPM) to have it download and work with nodejs.
Some furthur reading:
what is npm:
https://www.w3schools.com/whatis/whatis_npm.asp
Where your tailwind package come from:
https://docs.npmjs.com/about-npm
Believe it or not, its not the same removing node and npm on android as it is on linux. Does anybody know how to uninstall node and npm? Or to reinstall it or even just update it. Im in the dark here...
I have termux by the way
In termux you can remove node via apt/pkg if you install node with termux package manger. Only two packages provide node in termux. nodejs, nodejs-lts remove both if you can't recall what you have installed last time
pkg remove nodejs nodejs-lts
If you have installed node lite then replace that name.
FYI you can list installed package in termux via pkg list-installed
I am using React (create-react-app)
My understanding of what happens when we install a package from NPM or Yarn is: It finds the module and clones the code into node_modules, modules can also have their own package.json and dependent modules are cloned recursively.
If we are using a purely client side app (like React in my case), why does install process depend on node version? Like I get jsdom#16.2.0: The engine "node" is incompatible with this module. Expected version ">=10". Got "9.11.2"
As newer versions of Node.js are released, new features are added and older features are deprecated. Libraries using these new features can decide to lock in the minimum Node.js version needed to use their library.
If you use the library with a lower version of Node.js, the library will probably not work.
If you're working on multiple projects that require different versions of Node.js, consider installing and using nvm. With nvm, you can switch between multiple versions as needed by your projects.
https://github.com/nvm-sh/nvm
Does it have an issue or conflicts if you install ionic and angular and then you install reactjs, apache-cordova and karma in npm ?
If you install these packages on the same project you may have issues. All these frameworks are meant to work independent and you shouldn't use Angular if already using React or vice versa for instance.
If the packages are installed on different projects, then you are good to go. The package is only used by the project you installed it on (you can find all the packages installed for a project on the node_modules folder inside your project).
I think there would be no issues as long as you install them globally. just add -g every time you npm install something.
I keep getting the error: Cannot find module 'serve-favicon.' This error occurs not just for serve-favicon but for all core modules which also includes 'body-parser', 'cookie-parser', etc. I am using IntelliJ IDEA (version: 2016). I already enabled the Node.js Core library, and I have been able to use core modules in other projects successfully. What is different about this project however, is that I pulled it from github. Do I need to install another plugin? If yes, which one? Do I need to add another package?
serve-favicon, body-parser, cookie-parser are not node.js core modules.
You will need to install these dependencies from npm registry. To install these dependencies, you will need to run
npm install <package-name> --save
If you have pulled the project from github, chances are there will be a package.json file with a list of dependencies. In that case, all you need to do is run npm install from the project folder.