Reading folders became slow after using "npm install"

Asked

Viewed 46 times

0

After installing some modules via command npm install, open a folder in the Finder or an IDE (Atom or Sublime) has become something very painful and time consuming.

It seems that the problem may be related to the size of the folder, but when comparing with other folders it does not make sense, as even opening other folders with a huge amount of applications does not occur the same.

Below is the upload image, which takes well over 40 seconds to "check", but only for a specific folder after using the npm install

[![insert image description here][1][1]

  • Try this, a friend had this problem, and told me this link: http://osxdaily.com/2015/04/17/fix-slow-folder-populating-cloudkit-macosx/

  • 1

    This solution solved my problem: I realized that in the folder I was trying to read, there was no reading permission for "staff", "Everyone". I modified it and it all worked out.

  • It sounds like a cool question that fits into "problems faced by programmers". Calebeaires, will you publish a reply below detailing the solution. Thank you!

  • If you managed to solve, post as answer below. You can accept your own answer.

1 answer

0


Solution: modify folder permissions so that it is possible to read without user authentication in Osx. This is done as described in the image below which contains the information window of the problematic folder.

One solution I made was the one suggested by Guilherme Lima in the comments below, but I also added general reading permissions. They did not exist. After this procedure, the reading of the folder was almost immediate. See in the image below with details on staff and Everyone:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.