![]() Now you can re-install any global npm packages you need without any problems. To do this, add the following line to your ~/.bash_profile:Įxport PATH="$HOME/.npm-packages/bin:$PATH" The final step is to add ~/.npm-packages/bin to your PATH so npm and global npm packages are usable. Node and npm should be correctly installed at this point. Run the following commands to remove all existing global npm modules, uninstall node & npm, re-install node with the correct defaults, configure the location for global npm modules to be installed, and then install npm as its own pacakge. After you're finished you'll need to re-install them. These instructions will have you remove all of those packages. Once you're finished, you also won't need to use sudo to install npm modules globally.īefore you start, make a note of any globally installed npm packages. This solution fixes the error caused by trying to run npm update npm -g. ![]() Reply to this email directly, view it on GitHub You are receiving this because you are on a team that was mentioned. I'm saying this based on recent issues that have Without this preventive measure, let's call it that, people will startįlooding the issues, asking about what's happening and how to solve it and As much as gatsby tends to be a "turn key" solution, as you add itĪnd you're quasi good to go to start hammering the keyboard and pushing outĪpps, content or what the person is going to use gatsby for. ![]() On Tue, at 8:51 AM jonniebigodes and if you don't mind my two cents, butĪdding homebrew and Xcode's Command Line Tools, and with that addingĪnother step to the install process, might look like somewhat of a hassleīeforehand, but further down the line it will avoid some issues inbound to ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |