issue on setting angular 4 on windows machine facing this error - node.js

I am getting an error to install angular4 cli with node & npm on the windows machine. getting this error
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules#angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

This is not an error, this is a warning.
It says that the dependency fsevents wants a darwin operating system, but you are running on a Windows (win32 OS) machine.
It is only a warning because it is just an optional dependency for mac users.
The warning may disapear if you update NPM, though.
More details in this github issue.

Related

correctly downloaded node.js but still unable to install browser-sync and getting these warnings

The warning message is as follows :
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules\browser-sync\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ browser-sync#2.26.10
updated 1 package in 17.438s
This is simply a message telling you that fsevents wasn't installed because it's an optional package, but browser-events was installed.
The first line is:
SKIPPING OPTIONAL DEPENDENCY: fsevents
This means that for some reason or another, fsevents wasn't installed.
If you then go to the second line, it tells you why:
Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
If we look on the NPM page of fsevents:
Native access to MacOS FSEvents in Node.js
We can see that fsevents is a package ment to be used for MacOS. OS darwin is the equivalent to MacOS. Since you have Windows installed, node didn't install fsevents
The next line:
+ browser-sync#2.26.10
This shows that it added (+) browser-sync version 2.26.10 #2.26.10.
Then the last line is a summary that simply shows what node did.

Configure SharePoint Framework

I'm trying configure SharePoint FrameWork following this exercise.
I have installed nodejs (version v12.18.0) and npm (version 6.14.4).
When I run the following command:
npm install --global yo
I receive this response:
C:\Users\Familia Ramos>npm install --global yo
npm WARN deprecated cross-spawn-async#2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Maximum call stack size exceeded
Can someone help me with this?
Thank you in advance
With version 10, it still gives me the same results
C:\Windows\system32>node -v
v10.21.0
C:\Windows\system32>npm -v
6.14.4
C:\Windows\system32>npm install -g yo gulp
npm WARN deprecated cross-spawn-async#2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Maximum call stack size exceeded
"The current supported LTS version of NodeJS for the SharePoint Framework is Node.js v8.x and Node.js v10.x. Notice that 9.x, 11.x or 12.x versions are currently not supported with SharePoint Framework development. Above links are pointing to 10.20.1 version."
Just follow official guide here.
Finally,
I have made it work, activating the programmer mode in the windows settings
Regards

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7

I'm trying to install Angular using the Angular CLI but I'm getting an error when I try to run this command.
Command
npm install -g #angular/cli
Error:
C:\Users\abc>npm install -g #angular/cli
C:\Users\abc\AppData\Roaming\npm\ng -> C:\Users\abc\AppData\Roaming\npm\node_modules\#angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\#angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ #angular/cli#7.3.6
updated 1 package in 102.686s
Node Version v10.15.3
This is a warning not an error, and it's because you're on Windows. FSevents only works on Mac so it's not needed on Windows and that's why it's SKIPPING OPTIONAL DEPENDENCY.
And no as of right now there is no way to get rid of that being printed into the console so just ignore it given the fact that it's not doing anything anyways rather it's just being a bit verbose and telling you that it's not being used.
This is because you're running on windows. A lot of apps use that library, but it only works on the Mac, so they use something else for Windows and Linux. That's why it's listed as "optional". You can ignore the warning.

WARNING ON : npm install --save angular-calendar

In angular 4 app , I need to use calendar control in a form. while i try to install npm for calendar control, facing the below mentioned warning.
I could ignore the warning but then i don't see angular-calendar installed in my node_modules for which am unable to import the required modules.
Below is the error for reference, Any help would be appreciated.
Am using
NPM version : '3.10.10'
Node version : '6.11.0'
Message:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

How to install Webpack into existing Angular application?

I tried to install Webpack into an existing directory of a project using this command:
npm install --save-dev webpack
However, it returns the following errors:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN extract-text-webpack-plugin#2.1.2 requires a peer of webpack#^2.2.0 but none was installed.
npm WARN webpack-dev-server#2.4.5 requires a peer of webpack#^2.2.0 but none was installed.
How do I fix this and install Webpack?
It seems that you are running this on Win32 according to
wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
Try to update your node/npm version.
Check out a version manager for node. For windows you can try this one.
Edit:
Author did not respond.
Things tried that might have worked:
npm install -f
npm install webpack#2.2.0

Resources