首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >snyk依赖项下载问题

snyk依赖项下载问题
EN

Stack Overflow用户
提问于 2018-02-18 17:54:09
回答 1查看 436关注 0票数 1

我正在尝试安装w3c的respec项目的依赖项,我得到了这个错误

代码语言:javascript
复制
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.

> respec@19.6.0 prepublish C:\Users\MUJ\Desktop\respec
> npm run snyk-protect

> respec@19.6.0 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! respec@19.6.0 snyk-protect: `snyk protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the respec@19.6.0 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! respec@19.6.0 prepublish: `npm run snyk-protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the respec@19.6.0 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我尝试使用给定的命令安装补丁。这是我每次运行"npm install patch“时得到的结果。

代码语言:javascript
复制
C:\Users\MUJ\Desktop\respec>npm install patch
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ patch@0.0.1
added 1 package in 22.255s

C:\Users\MUJ\Desktop\respec>npm install
npm WARN rollback Rolling back ajv@4.11.8 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 tar-pack@3.4.0 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.

> respec@19.6.0 prepublish C:\Users\MUJ\Desktop\respec
> npm run snyk-protect

> respec@19.6.0 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! respec@19.6.0 snyk-protect: `snyk protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the respec@19.6.0 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! respec@19.6.0 prepublish: `npm run snyk-protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the respec@19.6.0 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我应该怎么做才能解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2018-02-18 18:20:06

这不是npm问题:这是Windows操作系统的二进制问题。this post here中介绍了此问题。

基本上,您需要在您的环境%PATH%变量上提供patch.exe。

似乎你可以找到他们的here,如果你还没有安装。

干杯。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48850368

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档