ERROR in Error: Metadata version mismatch for module ngx-admin/node_modules/ng2-tree/index.d.ts, found version 4, expected 3
First I thought it was ng2-tree package out of date. I update the ng2-tree from
"ng2-tree": "^2.0.0-alpha.10" To "ng2-tree": "^2.0.0-rc.1". But the issue still there.
{ 'ngx-admin': '2.0.1',
npm: '3.10.10',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '58.2',
modules: '48',
node: '6.11.4',
openssl: '1.0.2l',
uv: '1.11.0',
v8: '5.1.281.108',
zlib: '1.2.11' }
Thanks for your help.
+1
+1
+1
+1
+1
How do I solve this problem :
Modify dependencies at package.json , specifically this line
"ng2-tree": "^2.0.0-alpha.10" remove those caret to become like this "ng2-tree": "2.0.0-alpha.10"
run npm install and npm start
genz10, your solution worked perfectly! Thank you!!!
Guys, just use the correct version of npm as per the documentation.
Most helpful comment
How do I solve this problem :
Modify dependencies at
package.json, specifically this line"ng2-tree": "^2.0.0-alpha.10"remove those caret to become like this"ng2-tree": "2.0.0-alpha.10"run
npm installandnpm start