daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

EPEERINVALID angular-material@1.1.0-rc.5 #452

Open nebulr opened 8 years ago

nebulr commented 8 years ago

I am getting an error with angular-material@1.1.0-rc.5 Looks like the package.json file needs to be updated to allow for peer versions angular-material version > 1.0.*

npm WARN package.json starter@0.0.1 scripts['server'] should probably be scripts['start']. npm WARN package.json starter@0.0.1 No license field. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--save" "angular-messages" npm ERR! node v4.4.1 npm ERR! npm v2.14.20 npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package angular-material@1.1.0-rc.5 does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer angular-material-data-table@0.10.9 wants angular-material@^1.0.0

npm ERR! Please include the following file with any support request:`

gairon commented 8 years ago

nebulr, try to update npm npm install npm -g

gairon commented 8 years ago

There are some style troubles with table after updating to angular-material@1.1.0-rc.5:

noderat commented 8 years ago

I am also having a similar issue.

$ npm install --save angular-material@latest angular-material-data-table@latest
redacted@0.0.1 /redacted/path/from/example
├── UNMET PEER DEPENDENCY angular-material@1.1.0-rc.5
└── angular-material-data-table@0.10.9 

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN angular-material-data-table@0.10.9 requires a peer of angular-material@^1.0.0 but none was installed.
thalesrca commented 8 years ago

Same problem here

SRobotSoftware commented 8 years ago

I'm also experiencing this issue.

noderat commented 8 years ago

No, it's strictly angular 1.5.

    "angular": "^1.5.8",
    "angular-animate": "^1.5.8",
    "angular-aria": "^1.5.8",
    "angular-material": "^1.1.0-rc.5",
    "angular-material-data-table": "^0.10.9",
    "angular-messages": "^1.5.8",
    "angular-sanitize": "^1.5.8",
    "angular-ui-router": "^1.0.0-beta.1",
    "material-design-icons": "^2.2.3",```
cleever commented 8 years ago

Try to install angular-material manually again.

npm install angular-material

noderat commented 8 years ago

@cleever I've done that, additionally it's built on commit though Jenkins across multiple NPM/Node versions, node_modules is destroyed between builds. Though the module does install and work correctly.

cleever commented 8 years ago

Did you try to delete all node_modules folder and clean npm cache?

npm cache clean rm -rf node_modules

Which version of npm/node are you using ?

noderat commented 8 years ago

@cleever It's being built by Jenkins CI and node_modules is wiped across builds -- NPM cache is disabled in our Jenkins configuration.

Node 6.3.1 NPM 3.10.6

cleever commented 8 years ago

@noderat Sure! I hadn't noticed that. Sorry.

I've had some issues with node 6.x. Did you try to you run under node 4.x LTS ?

noderat commented 8 years ago

@cleever Same issue reguardless of node version, as it's how the dependencies are configured so it could change with npm version -- but i'm locked into always running the latest stable npm in my build process.