first try to re-write npm
and un-install it and install it again with the npm
command.
and install the following following packages again before installing these:
$ npm init -y
$ npm i -g [email protected]
$ npm i -D [email protected]
$ npm i -D [email protected]
but when I try to install the last command I get the following error:
root@me:/home/memee/Desktop/test/angular2# npm i -D [email protected] npm WARN [email protected] No description npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + [email protected] added 2 packages from 1 contributor and audited 2145 packages in 58.968s found 7 vulnerabilities (2 low, 4 high, 1 critical) run 'npm audit fix' to fix them, or 'npm audit' for details
and how the error says that you should execute the commands:
npm audit fix
and
npm audit
and when I ran the two commands I tried to install it again and it still gives me the same error.
Any ideas? What is happening to me?