esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Angular type def doesnt exist #973

Closed avihaymenahem closed 7 years ago

avihaymenahem commented 7 years ago

Running npm install with @types/angular returns error and cant install.

When seaeched for types/angular on github, ive seen it doesnt exist...

Any solution? (--only=dev doesnt work also)

ccrowhurstram commented 7 years ago

The type declaration files are included in the ng-table npm package itself. This is the same as angular 2 - it does not have any external @types package(s)

avihaymenahem commented 7 years ago

@ccrowhurstram when im running npm install, it fails becuase of the following: "dependencies": { "@types/angular": "^1.5.13" }

So if it doesnt need it, why its on deps?

ccrowhurstram commented 7 years ago

Ah, OK I see.

Sorry I had it my head that you were talking about wanting to install type declarations for the ng-table code itself.

@types/angular is a package over on the npm registry. This is maintained by the angular team.

I can see that it is available on the npm registry by running the following cmd: npm info @types/angular versions --json

So can't really help why it's not installing on your machine...

avihaymenahem commented 7 years ago

i tried it from 6 different servers in 6 different locations (amsterdam, israel, usa, china, moscow, australia), and none of them seems to recognize that... weird

ccrowhurstram commented 7 years ago

did you try running the cmd I used to list the versions of @types/angular on npm?

I see the following:

image

avihaymenahem commented 7 years ago

The Error:

1

avihaymenahem commented 7 years ago

@ccrowhurstram Versions returns error on one server, and null response on the other

ccrowhurstram commented 7 years ago

Looks like it's a problem with your environment... maybe permissions related

avihaymenahem commented 7 years ago

New envs, new machines, on local, aws, softlayer and vultr. Brand new , with no changes than default. Weird...

ccrowhurstram commented 7 years ago

computers... can't live with them, can't live without

avihaymenahem commented 7 years ago

Seems like when working with private repos (Nexus, etc) you need to explicitly set the registry to npm's one (Even when proxy is on to the original) :)

@ccrowhurstram Thanks!!