Angular 2 problem: typings: command not found

Thus, this may come off as a really basic question, but he listened to me for several days and actually did not find a solution.

I install typing from the command line with npm number and it seems to work fine, but then I type any input command and says that this command does not exist!

It looks something like this:

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 typings@1.0.4 /Users/kevynquiros/npm/lib/node_modules/typings β”œβ”€β”€ listify@1.0.0 β”œβ”€β”€ xtend@4.0.1 β”œβ”€β”€ wordwrap@1.0.0 β”œβ”€β”€ archy@1.0.0 β”œβ”€β”€ minimist@1.2.0 β”œβ”€β”€ any-promise@1.3.0 β”œβ”€β”€ bluebird@3.4.0 β”œβ”€β”€ chalk@1.1.3 ( supports-color@2.0.0 , escape-string-regexp@1.0.5 , ansi-styles@2.2.1 , has-ansi@2.0.0 , strip-ansi@3.0.1 ) β”œβ”€β”€ columnify@1.5.4 ( strip-ansi@3.0.1 , wcwidth@1.0.1 ) β”œβ”€β”€ update-notifier@0.7.0 ( is-npm@1.0.0 , xdg-basedir@2.0.0 , semver-diff@2.1.0 , ansi-align@1.0.0 , boxen@0.5.1 , configstore@2.0.0 , latest-version@2.0.0 ) └── typings-core@1.0.1 ( array-uniq@1.0.2 , thenify@3.2.0 , zip-object@0.1.0 , popsicle-status@2.0.0 , graceful-fs@4.1.4 , popsicle-retry@3.1.0 , throat@2.0.2 , lockfile@1.0.1 , promise-finally@2.2.0 , string-template@1.0.0 , strip-bom@2.0.0 , sort-keys@1.1.2 , make-error-cause@1.1.0 , debug@2.2.0 , has@1.0.1 , rc@1.1.6 , object.pick@1.1.2 , configstore@2.0.0 , parse-json@2.2.0 , invariant@2.2.1 , detect-indent@4.0.0 , mkdirp@0.5.1 , tou ch@1.0.0 , is-absolute@0.2.5 , popsicle-proxy-agent@2.0.1 , rimraf@2.5.2 , typescript@1.8.7 , popsicle@6.2.0 ) 

And here is what happens:

 Kevyns-MacBook-Pro:~ kevynquiros$ typings search tape -bash: typings: command not found 

Please, help!

+7
angularjs angular npm typescript-typings
source share
2 answers

As with cmd in your question, the typings package typings installed in /Users/kevynquiros/npm/bin/typings . You need to add this folder to your PATH .

One way to do this:

  • Create or edit the /Users/kevynquiros/.bash_profile file
  • In this file, add the line:

    export PATH=${PATH}:/Users/kevynquiros/npm/bin/

  • close and reopen the terminal , and it should work.

+5
source share

Try using npm install typings -g

+4
source share

All Articles