So this might come off as a really basic question but it has been bugging me for days now and haven't actually found a solution.
I'm installing typings from the command line with npm and it appears to run well but then I type any typing command and it says that the command doesn't exist!
It goes something like:
Kevyns-MacBook-Pro:~ kevynquiros$ sudo npm install typings --global
Password:
/Users/kevynquiros/npm/bin/typings -> /Users/kevynquiros/npm/lib/node_modules/typings/dist/bin.js
[email protected] /Users/kevynquiros/npm/lib/node_modules/typings
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
And then this is what happens:
Kevyns-MacBook-Pro:~ kevynquiros$ typings search tape
-bash: typings: command not found
Please help!
Try to use npm install typings -g
As of the cmd output in your question, the typings
package is installed in /Users/kevynquiros/npm/bin/typings
. You need to add that folder to your PATH
.
One way to do it is:
/Users/kevynquiros/.bash_profile
In that file, add a line:
export PATH=${PATH}:/Users/kevynquiros/npm/bin/
close and re-open terminal
and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With