I installed the Bower package for Sublime. It says Bower is installed, but when I try to install anything I get this warning:
bower could not be found in your $PATH. Install bower with npm install bower -g
I'm a noob when it comes to using Terminal, but I tried to install Bower there. But it comes back with:
-bash: npm: command not found
It appears this relates to Node, but I don't even know what that is or anything about it.
I'm on a Mac 10.6.8., using Sublime Text 2. If this solution requires going back into Terminal, please spell it our for me, because I am not comfortable using it.
Thanks in advance!
Okay, I figured it out myself. I installed Node—still don't know what it is exactly—but apparently I needed it. I found an installer package at http://nodejs.org/download/
Then I went back to Terminal and tried installing Bower again. Still didn't work. then I added sudo to the line and it appears to have worked.
Related
I recently tried to launch my project on a new computer. I downloaded the source code from its repository and ran npm install to get all the needed packages.
However, when I run npm start or expo start:web, I get the error:
Cannot find module '#expo/metro-config'
I ran npm install #expo/metro-config and the install run without issue, but I still get the “Cannot find module '#expo/metro-config'” error.
The only post I saw regarding this error recommends editing the metro.config.js but I do not use one.
I am on SDK 42, and the project launches fine on my other computer. Any idea what is happening?
FYI, I use to perform this whole operation without any issue until now.
UPDATE:
I ran npm install -g #expo/metro-config and now I get the error Cannot find module 'resolve-from'
So it looks like maybe running npm install -g expo-cli doesn't actually install all the necessary packages? Could it be the issue?
I managed to make it "work" (get other missing packages errors down the line) by reverting to expo-cli 4.7.3. Anything from 4.8.0 and above will cause the error.
Something else is that on a fresh npm install, after running npm install -g expo-cli, if I try to create a project with expo init, I will get the error Error: Cannot find module 'kleur'. Running npm install kleur fix it, but maybe that's also a clue.
I’m getting that message after installing express globally.
I went through most of the solutions related to the /.bash_profile file and about exporting the correct PATH, but it still nothing works.
I tried this solution https://superuser.com/a/1081802 and it worked on the terminal, but when I close it and tried to execute the command express followed by the file I wanted to use, it ended up showing the same message.
Please help!
So I was looking for other kinds of solutions, and I remembered that I installed via the website and not by home-brew. Just in case, I uninstalled it and installed node again.
I run this:
npm install express -g
npm install express-generator -g
And up to this point it is now working.
I am running Windows 8.1 with node version 7.7.3 and npm version 4.1.2.
I have been working on an Angular tutorial without issues. At some point since finishing that tutorial I installed Python. I am not sure if it is related, but I have mentioned it just in case.
Today I am trying to create an Angular application and it hung without completing.
I did some research and it tells me to do this:
npm uninstall -g #angluar/cli
npm cache clean
npm install -g #angular/cli
The last command hangs at this point:
loadRequestedDeps: silly install loadAllDepsIntoIdealTree
I opened the command prompt "run as administrator" to run these commands.
Everything I try fails. I have connected to a completely different network to eliminate that as the problem and that didn't fix anything. I have uninstalled and reinstalled node.js and that hasn't fixed the problem either.
I can ping registry.npmjs.org just fine.
What is causing this error?
I finally found the answer! I ran the following command in the command window:
echo %temp%
It had 3 temp paths in there. I removed the two I didn't need and voila, it works!
I was working through the Thinkster Angular/Firebase tutorial and in the installation process I got to the part where I needed to install grunt-cli with this command in the terminal:
npm install -g bower grunt-cli
and got this error:
lodash#<3.0.0 is no longer maintained. Upgrade to lodash#^3.0.0.
How do I upgrade my lodash?
This is probably because of the dependency chain. I guess grunt is still stocking to the older version of lodash. I think you should be fine as long as grunt is supporting it.
You find more info on this at https://github.com/Azure/azure-mobile-apps-js-client/issues/20
I followed this guide to install foundation on my Windows 8.1 PC.
http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and-libsass-on-windows
When I get to Step 16 my cmd prompt gets stuck on "Installing dependencies with bower...".
I have had foundation work on my computer before but I recently had to reformat it. Thanks for any help.
I know this is an old issue but I was having the same problem today using bower to install angular sanitize, and wanted to add my two cents, in case someone has this issue again.
Not sure if this is the best solution but it worked: I added the force flag
bower install --force
you can also try before:
bower cache clean
bower cache list
Also I deleted the libraries that bower had pulled in previously
I spent a lot of time trying to fix this problem... and I have solution! :) I think it's a problem between node.js and npm versions. I noticed that when I have newest node.js I don't have problem with npm ERR! when I start in CMD npm install -g bower and then run foundation new project_name --libsass I notice the "Installing dependencies with bower..." process goes on and on ....
However, when I installed node.js version 0.10.x and create a new Foundation project, the "Installing dependencies with bower..." works properly but I have an npm ERR! (and earlier when typing "npm install -g bower").
Conclusion:
If you have node.js version > 0.10.x uninstall it and restart computer.
Install node.js version 0.10.x (I have node-v0.10.9-x86) and restart computer.
Upgrade npm to latest version. Good tutorial how to do it here:
https://github.com/npm/npm/wiki/Troubleshooting in section "Upgrading on Windows" and restart computer.
Check your npm version: open CMD and typing it "npm -v", if you see npm 2.5.1 or later (for future) you successfull updated npm...
Install everything else as-per:
http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and-libsass-on-windows
Hope it helps!
Arcady
P.S.
I have Windows 64-bit, I installed rubyinstaller-1.9.3-p551, and newest Git version...
I have the same problem and did a Ctrl+C to stop installing dependencies with bower. Then did bower update command while in the directory where my website was and it finished adding all the correct files.
Hello I got the same problem. Try to clear bower cache it solved my problem
bower cache clean
bower cache list
Hope it helped you
I reinstalled bower globally, and it worked.
npm install -g bower
i have the same problem. I'm on windows 8.1 x64. Tried: Cleaning bower cache, added bower to environment path, reinstalled node.js. I didn't found a resolution but you can try this:
Download this starter compass project and unzip it
Copy the files to Your project folder.
In CMD go to your project directory and Run "bower install" to install the latest version of Foundation.
Next run "compass watch".
Now open index.html