While attempting to set up the dependencies for the W3C Respec project, I encountered this error message:
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5d7c0d6d5c0c6e5949c8b938b95">[email protected]</a> prepublish C:\Users\MUJ\Desktop\respec
> npm run snyk-protect
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1a687f696a7f795a2b23342c342a">[email protected]</a> snyk-protect C:\Users\MUJ\Desktop\respec
> snyk protect
Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9be9fee8ebfef8dbaaa2b5adb5ab">[email protected]</a> snyk-protect: `snyk protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0d2c5d3d0c5c3e091998e968e90">[email protected]</a> snyk-protect script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa889f898a9f99bacbc3d4ccd4ca">[email protected]</a> prepublish: `npm run snyk-protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5426312724313714656d7a627a64">[email protected]</a> prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I attempted to address the issue by following the provided commands. However, every time I execute "npm install patch", I receive the following outcome:
C:\Users\MUJ\Desktop\respec>npm install patch
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94f2e7f1e2f1fae0e7d4a5baa5baa7">[email protected]</a> (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="167065736073786265562738273825">[email protected]</a>: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87f7e6f3e4efc7b7a9b7a9b6">[email protected]</a>
added 1 package in 22.255s
C:\Users\MUJ\Desktop\respec>npm install
npm WARN rollback Rolling back <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f6979c80b6c2d8c7c7d8ce">[email protected]</a> failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\Users\MUJ\Desktop\respec\node_modules\fsevents\node_modules'
npm WARN rollback Rolling back <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="592d382b7429383a32196a776d7769">[email protected]</a> failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\Users\MUJ\Desktop\respec\node_modules\fsevents\node_modules'
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0674637576636546373f28302836">[email protected]</a> prepublish C:\Users\MUJ\Desktop\respec
> npm run snyk-protect
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6416011714010724555d4a524a54">[email protected]</a> snyk-protect C:\Users\MUJ\Desktop\respec
> snyk protect
Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="592b3c2a293c3a196860776f7769">[email protected]</a> snyk-protect: `snyk protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cdbfa8bebda8ae8dfcf4e3fbe3fd">[email protected]</a> snyk-protect script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b6c4d3c5c6d3d5f6878f98809886">[email protected]</a> prepublish: `npm run snyk-protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fe8c9b8d8e9b9dbecfc7d0c8d0ce">[email protected]</a> prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
What steps should I take to resolve this issue?