Errors with angular-cli - node.js

I have installed NodeJS and try to build the example project from ng-book2
On page 5 I need to run ng And there are WARNINGS.
I found solution (Link 2) and try it, but there are ERRORS, so, I changed version:
But it doesn`t help too.
Please, help me.

Related

Webpack loading wrong version of Node Module for Angular project

I have a project in Angular 13. I want to use quillJS and I want to add tables so I tried to install quill-better-table in my project.
For some reason the package is not working. I used the web inspector and found this to be the issue:
ERROR TypeError: quill.keyboard.bindings.Backspace is undefined
The problem seems to be located at: quill_better_table_BetterTable quill-better-table.js:2979 and when I check the debugger I can see the line:
let thisBinding = quill.keyboard.bindings['Backspace'].pop();
quill.keyboard.bindings['Backspace'].splice(0, 1, thisBinding); // add Matchers to match and render quill-better-table for initialization
// or pasting
I found a github repo that had this issue fixed:
https://github.com/LosEcher/quill-better-table
The problem I'm running into is I dont know how to get that particular repo into my project. I have tried updating the current package and webpack continues to load the old one. I've tried clearing the npm cache and reinstalling the node packages.
I found this guide: https://whatapalaver.co.uk/npm-dependency which seems to indicate what I should do but I'm not quite npm literate enough to figure it out. Specifically, I dont know that I understand how to create the NPM link.
I'm looking for advice as to how to fix this package. I am going to be reading up on NPM link but I figured if there was another easier way to get this fixed then I would ask. I can load that repo into my node module folder, but I dont know how to make webpack reload the updated module.
Thanks in advance for the help, let me know what details I for got to add.

TypeError: resolver.resolve is not a function

When trying to truffle compile smart contracts and deploy them to an RPC testnet, I keep encountering
TypeError: resolver.resolve is not a function
at Profiler. (/opt/homebrew/Cellar/truffle/5.3.6/libexec/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/profiler/profiler.js:55:1).
In visual studio code I can't find resolver.resolve anywhere in my code and even cloning projects straight from github it always displays this message when truffle compiling. I have searched everywhere for the resolution and tried debugging myself in the terminal and my current thinking is it's a webpack error but I can't figure out how to solve it. Any help would be greatly appreciated!
I was also in same situation then i find the solution. Follow these steps
Remove node_modules directory & package-lock.json (Not package.json)
Go to your cli & run npm install command
You are done
Hope this solve your problem

Error: There are multiple entries in the deeplink config with the name of Page

I recently moved some files from one project to another and everything was working fine before. Now I am getting this error when I try ionic serve.
It states error AddChemicalPage, but that is the first page in the pages directory. It has to be ionic-app-script, but not sure what I'm doing wrong.
Help is Appreciated!
So I overlooked the Cordova CLI : not installed and I'm assuming that was causing the issues. npm install -g cordova and everything workd fine after that.

Cannot find module './clone.js'

I installed angular cli via terminal. When I try to use ng(to create a new project), I get an error: Cannot find module './clone.js'terminal snap
I've tried to delete angular and clear cache, but that didn't help. Can somebody come up with solution, please?
graceful-fs, which is depended on by a LOT of npm packages, just released 4.1.12, which has a bug in it: https://github.com/isaacs/node-graceful-fs/issues/139
try upgrading to the new version of angular
ng update

npm never ending process while installing angular 4

I am trying to install new angular 4. I have upgraded my node to the latest version, 6.11.2, and my npm to 3.10.10. I trying to install angular-cli globally but it took hours,still no success.
I see many of us have the same problem. I tried their solution by disabling my firewall as well as progress bar, unfortunately, no success in my case.
Can anyone help me please?
Thanks.
I found a solution from one of the posts on the forum. The problem was with the system environment variables, I had duplicate temp variables which were causing a crash during the execution. I have removed the duplicate variables and restarted my computer, and it worked perfectly. Hope it will help someone.

Resources