Category: Npm install stuck at fsevents

Some of the JavaScript tool libraries didn't load so I went back into Solution Explorer to see if there was a problem and I saw this weird error that said or at least, I read it as "npm not installed.

Midi triads

I also ran "where" to see where and how many npm was installed. This looks OK as two of those npms are shell scripts and not run on Windows. Just to make sure you have the version of npm you want, Felix made a VERY useful npm-windows-upgrade utility that you run like this, ironically with npm.

I've used this tool many times with success. It also lets you choose the exact version you want and it's very smart. However, then I realized that Visual Studio wasn't saying that npm wasn't installed, it was saying a dependency in the npm tree below wasn't installed. That hyphen - is intended to mean something. For the record, I think this is not intuitive and is a poor UX. Perhaps it should say "package s not installed" but you get the idea now. I started manually opening the tree up one item at a time looking for the bad package - while quietly swearing to myself - until I realized that the Solution Explorer tree nodes are searchable.

This is UX issue number two, for me. I think the "broken" library should also include the BANG!

Subscribe to RSS

Regardless, now I know I can quickly do a string search. I dropped out to the command prompt into to the project's folder and run " npm ls " to see an ASCII tree that effectively is the same tree you see in Visual Studio. Looks like fsevents is a package that is only used on OSX, so it's an optional dependency that in the case of Windows is "unmet.

Gke egress ip

Perhaps it's more an "INFO" or perhaps, one could argue, it doesn't need to be shown at all on Windows. A quick google shows that, well, the entire world is asking the same thing.

So much so that it got pretty heated in this GitHub Issue asking a similar question. Here's where it gets super interesting.

Visual Studio consider it from their point of view needs to keep things consistent so it tests with, and ships with, a version of npm. Again, this makes sense. That way when working in a large group we can all be sure we're on the same version of stuff.

When you get a new version of the Web Tools for Visual Studio, presumably this version of npm gets updated.

Epub

This also means that unless you tell Visual Studio otherwise, the npm and node you get when running a build in VS is gonna be different than if you do it outside - if you stick with the default settings. I added my node installation like this and made sure it was at the top. Then I right click on npm and Restore Packages and all is right with the world as now I'm using npm 3. The Output Window for 3.

Actually I think VS is calling an npm library, rather than shelling out and parsing the " npm ls --json " payload, but you get the idea.

The change I made affects all Visual Studio projects on my machine, forever. Maybe I need to be smarter? Maybe Visual Studio is already being smart. Note the second option there in the list? It's pointing to. Ah, I can just add specific version of npm to packages.

How can I be sure it's ignoring that relative path?It was only ever intended to fix a specific error message which has since been fixed.

I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that. Installing node through Homebrew can cause problems with npm for globally installed packages.

To fix it quickly, use the solution below. An explanation is also included at the end of this document.

npm install stuck at fsevents

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally. Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

Node and npm should be correctly installed at this point.

Natural remedies for hormonal imbalance in females

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -gyou may see an error like this:.

There's an NPM bug for this exact problem. The bug has been "fixed" by Homebrew installing npm in a way that allows it to manage itself once the install is complete. However, this is error-prone and still seems to cause problems for some people. The root of the the issue is really that npm is its own package manager and it is therefore better to have npm manage itself and its packages completely on its own instead of letting Homebrew do it.

Also, using the Homebrew installation of npm will require you to use sudo when installing global packages.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Ask Different is a question and answer site for power users of Apple hardware and software.

It only takes a minute to sign up. I've been trying to npm install Bootstrap and Font-Awesome on an Angular application. Should be a routine job with no problems. Now, I'm getting errors like this. It would appear that the root of this issue is centered around the fsevents package that npm is trying to install. This is indicated in other reports on this issue in other places. I went back to the drawing board. It turns out that when I looked at the github issue closer, someone actually nailed the root cause with this handy little tidbit.

This is not something to be "fixed". There no longer are credentials for AWS. So the installs are actually a bit risky. In addition 1. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

npm install stuck at fsevents

Asked 5 months ago. Active 26 days ago. Viewed times. No receipt for 'com. Are you running a VPN like the related question? Also, the FTP similarity may be coincidental.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. The dark mode beta is finally here.

Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

The warning is apparently causing our Jenkins Job to mark failed, so we are just trying to get rid of the same. Also, my package. Following is my package.

crskyhud.site Part 1 - Install NodeJS on Windows

I can see fsevents in the package. I tried running the npm install command and getting the exit status of the earlier command. It showed 0 meaning success, despite the warnings. So, it does not look like Jenkins job should be stuck due to this. However, we are still trying to find a way to get rid of this warning because it is not relevant to our OS. Linux system ignores fsevents whereas mac install it.

As the above error message states that fsevents is optional and it is skipped in installation process. You can run npm install --no-optional command in linux system to avoid above warning. I'd like to repost some comments from this threadwhere you can read up on the issue and the issue was solved.

npm install stuck at fsevents

This is exactly Angular's issue. Current package. This may be a problem for non-OSX users. Even if you remove it from package. If you want to hide this warn, you just need to install fsevents as a optional dependency. Just execute:. NPM on Optional Dependencies. You can add fsevents to this object and if you find yourself installing packages in a different platform than MacOS, fsevents will be skipped by either yarn or npm.

I also had the same issue though am using MacOS. The issue is kind of bug. I solved this issue by repeatedly running the commands. One time it did not work but when I repeatedly cleaned the cache and after uninstalling npm, reinstalling npm, the error went off. I am using Angular 8 and this issue is common. I found the same problem and i tried all the solution mentioned above and in github.I have installed the new project and trying to do the install npm to fetch the elixir and webpack and get the following error.

This was actually happened for windows platform so i just install gulp globally and then problem solved. You can use something like. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account.

Notify me of new comments via email. Notify me of new posts via email. Skip to content. You can use something like npm install —global gulp-cli npm install gulp —save-dev npm rebuild node-sass. Share this: Twitter Facebook. Like this: Like Loading Previous Post How to install flash player on ubuntu.

Leave a Reply Cancel reply Enter your comment here Please log in using one of these methods to post your comment:. Email required Address never made public. Name required. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

The comments above tell you what you already know. Perhaps you should've phrased this as a question. Assuming the question is how to prevent fserrors on a non-Mac system, the solution I found is this:. Learn more.

What to do when `npm install` hangs?

Asked 3 years, 4 months ago. Active 3 years ago. Viewed 13k times. Hello i'am trying to install fsevents whitch npm. Therefore i use the following versions: Node : 4. Linux 4. Please include the following file with any support request: npm ERR! Manny thanks Erik. Erik hoeven. Erik hoeven Erik hoeven 3 3 gold badges 9 9 silver badges 25 25 bronze badges. The error is pretty clear Not compatible with your operating system or architecture: fsevents 1.

To expand on JoeClay's comment, fsevents is a mac-only file watching package. Same porblem, but the answer do not help. The question is why and how to fix this? How can one exclude optional dependency fsevents from from an npm install?

Active Oldest Votes. Also, my package.It happens randomly on npm install. At the times it happens we check NPM status page and there are no reported issues. The last line is always the last successful operation. The last line usually appears to be a successful extraction, e.

Is there something else we can look at in this output? The end of the file just goes Nothing more after that o. So either the JSON is not validated before being cached?

npm install stuck at fsevents

Or writing to the file is cut off abruptly somehow? Not sure if this will affect how the cache is stored? The response is 5.

What to do when `npm install` hangs?

Malformed cache file was around kb. Especially for our CI system. Should the JSON cache be validated before saving? Or if invalid on reading could it be deleted and ignored and then retry direct from the registry instead of dying?

It happens for our team randomly on our laptops mac OS and also on our CI system ubuntu All npm versions are 6. We are located in Australia. The problem is happening on 3 completely different networks and ISPs. All are high speed connections. We are not using any proxies on any connection.