I am trying to make ionic2 app. But npm is not supporting. It always gives me this error.
Asked
Active
Viewed 778 times
0
-
What do you mean by "But npm is not supporting"? – Ram Aug 31 '17 at 11:23
-
@ram npm gives error "Cannot find module 'har-schema' ". you can check above image. – Senior WordPress Developer Aug 31 '17 at 11:48
3 Answers
0
Try to install previous version of npm:
npm install npm@5.2 -g
Unfortunatelly, current version(5.3) has a lot of bugs.
Lazyexpert
- 2,924
- 1
- 18
- 32
-
I have tried your solution. But same issue is still there. – Senior WordPress Developer Aug 31 '17 at 11:45
-
-
-
-
@WebTesting what do you mean, that you have the same issue? You still try to install version 5.3? – Lazyexpert Aug 31 '17 at 11:56
-
no, I am not tryin to install npm 5.3 I am facing same issue "Cannot find module 'har-schema' ". whenever I try to update version of npm. Right now I am unable to update version of npm. – Senior WordPress Developer Aug 31 '17 at 12:03
-
I have tried to uninstalling and re-installing node and npm. But it didn't worked. Still i was facing Cannot find module 'har-schema' error. – Senior WordPress Developer Aug 31 '17 at 12:04
0
I found solution of it. Solution is uninstall node and npm completely from your PC and then re-install it. to uninstall node and npm completely check this link. How to completely remove node.js from Windows
Senior WordPress Developer
- 895
- 6
- 13
0
This worked for me:
npm install -g --only=production --save har-schema
tinker-tailor
- 4,813
- 6
- 41
- 78