Task Runner Explorer中的'package'任务无效 [英] 'package' task in Task Runner Explorer not working

查看:66
本文介绍了Task Runner Explorer中的'package'任务无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在使用gulp.js运行MVC应用程序gulp任务之一是'包'。它的工作是将CSS打包在一个地方。出于某种原因,它突然无法正常工作。当我运行它时,我得到这个输出:



> cmd.exe / c gulp -b" C:\ Users \ junkm \ Source \ Repos \ RiskAlive7 \ RiskAlive" --color --gulpfile" C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ package

[09:28:16]使用gulpfile~ \Source\Repos\RiskAlive7 \ RiskAlive \ Gulpfile.js

[09:28:16 ]开始'安装'...
$
[09:28:16]开始'lint'...
$
[09:28:16]完成'lint'之后34μs

[09:28:16]开始'dev:js'...
$
[09:28:16]开始'dev:css'...

[09:28:16]开始'dev:img'...
$
[09:28:16] img-files:Web\favicon.ico

[09:28:16] css-files:Web \Styles\_loginLayout.css

[09:28:16] css-files:Web \Styles \_mainLayout.css

[09:28:16] css-files:Web \Styles\skin-black.min.css

[09:28: 16] css-files:Web \Styles\bowtiediagram.css

[09:28:16] css-files:Web \Styles\site.css

[09:28:16] css-files:Web \Styles\typeahead.css

[09:28:16] css-files:6 items

[09:28:16]在162毫秒之后完成'dev:css'

[09:28:16]完成了'dev: js'在246 ms之后

[09:28:16] img-files:1项

[09:28:16]在729 ms之后完成'dev:img'

npm WARN package.json JSV@4.0.2'repositories'(复数)不支持。请选择一个作为'存储库'字段

npm WARN package.json bcrypt-pbkdf@1.0.1没有存储库字段。

npm WARN package.json callsite@1.0。 0没有存储库字段。
$
npm WARN package.json cli-usage@0.1.4没有存储库字段。

npm WARN package.json eyes@0.1.8没有存储库字段。

npm WARN package.json gulp-minify-css@1.2.4没有存储库字段。

npm WARN package.json has-binary@0.1.7没有存储库字段。

npm WARN package.json indexof@0.0.1没有存储库字段。

npm WARN package.json object-component@0.0.3没有存储库字段。

npm WARN package.json punycode@1.4.1 punycode也是节点核心模块的名称。

npm WARN package.json string_decoder@1.0.1 string_decoder也是节点核心模块。

npm ERR! TypeError:无法读取未定义的属性"最新"

npm ERR!    在下一个(C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7 \IDE\Extensions\Microsoft \Web Tools \External\\\
pm \\\
ode_modules \\\
pm \lib \\ cache.js:789:35)

npm ERR!     at C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\\
pm\\\
ode_modules \ nnpm \lib \ cache .js:777:5
$
npm ERR!     at RegClient.get_(C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\\
pm\\\
ode_modules\\\
pm-registry -client\lib\get.js:111:14)

npm ERR! &NBSP; &NBSP;在RegClient。< anonymous> (C:\Program Files(x86)\ Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\\
pm\\\
ode_modules \ nnpm-registry-client \ lib\get.js:47:12)

npm ERR! &NBSP; &NBSP; at fs.js:271:14
$
npm ERR! &NBSP; &NBSP;在C:\Program文件(x86)\Microsoft的Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\\
pm\\\
ode_modules\graceful,fs\graceful- fs.js:105:5
$
npm ERR! &NBSP; &NBSP; at Object.oncomplete(fs.js:107:15)

npm ERR!如果您需要帮助,可以报告此*整个*日志,

npm ERR!包括npm和节点版本,在:

npm ERR! &NBSP; &NBSP; < http://github.com/npm/npm/issues>
$
npm ERR!系统Windows_NT 6.2.9200

流程以代码1终止。
$
npm ERR!命令"C:\\Program Files(x86)\\ Microsoft Visual Studio 14.0 \\Common7 \\IDE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \External\\\\\\
ode\\\\
ode" "C:\\Program Files(x86)\\ Microsoft Visual Studio 14.0 \\Common7 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Tools\\External\\\\
pm\\\\
ode_modules\\\\
pm\\bin\\\\
pm-cli.js" "安装"
$
npm ERR! cwd C:\ Users\junkm \ Source \ Repos \ RiskAlive7 \ RiskAlive

npm ERR! node -v v0.10.31
$
npm ERR! npm -v 1.4.9

npm ERR!输入non_object_property_load

[09:28:44] npm以非零代码1退出,手动运行`npm install`

[09:28:44]'install' 28秒后出错_
[09:28:44]错误:npm退出非零代码1

  &NBSP;在ChildProcess。< anonymous> (C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ &NBSP; &NBSP;在ChildProcess.emit(events.js:98:17)

  &NBSP;在maybeClose(child_process.js:756:16)

  &NBSP;在Process.ChildProcess._handle.onexit(child_process.js:823:5)

npm



任何人都可以帮我弄清楚什么是错的。

Hello,

I'm running an MVC application with gulp.js. One of the gulp tasks is 'package'. It's job is to package the CSS together in one spot. For some reason, it's all of a sudden not working. When I run it, I get this output:

> cmd.exe /c gulp -b "C:\Users\junkm\Source\Repos\RiskAlive7\RiskAlive" --color --gulpfile "C:\Users\junkm\Source\Repos\RiskAlive7\RiskAlive\Gulpfile.js" package
[09:28:16] Using gulpfile ~\Source\Repos\RiskAlive7\RiskAlive\Gulpfile.js
[09:28:16] Starting 'install'...
[09:28:16] Starting 'lint'...
[09:28:16] Finished 'lint' after 34 μs
[09:28:16] Starting 'dev:js'...
[09:28:16] Starting 'dev:css'...
[09:28:16] Starting 'dev:img'...
[09:28:16] img-files: Web\favicon.ico
[09:28:16] css-files: Web\Styles\_loginLayout.css
[09:28:16] css-files: Web\Styles\_mainLayout.css
[09:28:16] css-files: Web\Styles\skin-black.min.css
[09:28:16] css-files: Web\Styles\bowtiediagram.css
[09:28:16] css-files: Web\Styles\site.css
[09:28:16] css-files: Web\Styles\typeahead.css
[09:28:16] css-files: 6 items
[09:28:16] Finished 'dev:css' after 162 ms
[09:28:16] Finished 'dev:js' after 246 ms
[09:28:16] img-files: 1 item
[09:28:16] Finished 'dev:img' after 729 ms
npm WARN package.json JSV@4.0.2 'repositories' (plural) Not supported. Please pick one as the 'repository' field
npm WARN package.json bcrypt-pbkdf@1.0.1 No repository field.
npm WARN package.json callsite@1.0.0 No repository field.
npm WARN package.json cli-usage@0.1.4 No repository field.
npm WARN package.json eyes@0.1.8 No repository field.
npm WARN package.json gulp-minify-css@1.2.4 No repository field.
npm WARN package.json has-binary@0.1.7 No repository field.
npm WARN package.json indexof@0.0.1 No repository field.
npm WARN package.json object-component@0.0.3 No repository field.
npm WARN package.json punycode@1.4.1 punycode is also the name of a node core module.
npm WARN package.json string_decoder@1.0.1 string_decoder is also the name of a node core module.
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\lib\cache.js:789:35)
npm ERR!     at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\lib\cache.js:777:5
npm ERR!     at RegClient.get_ (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm-registry-client\lib\get.js:111:14)
npm ERR!     at RegClient.<anonymous> (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm-registry-client\lib\get.js:47:12)
npm ERR!     at fs.js:271:14
npm ERR!     at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\graceful-fs\graceful-fs.js:105:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.2.9200
Process terminated with code 1.
npm ERR! command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\\\node\\node" "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\External\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\junkm\Source\Repos\RiskAlive7\RiskAlive
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.9
npm ERR! type non_object_property_load
[09:28:44] npm exited with non-zero code 1 , run `npm install` manually
[09:28:44] 'install' errored after 28 s
[09:28:44] Error: npm exited with non-zero code 1
    at ChildProcess.<anonymous> (C:\Users\junkm\Source\Repos\RiskAlive7\RiskAlive\node_modules\gulp-install\lib\commandRunner.js:14:19)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm

Can anyone help me figure out what's wrong.

推荐答案

你好gub898,

Hi gub898,

根据错误信息,问题似乎与" '存储库'(复数)不支持"。请先在你的gulpfile.js中查看。

According to the error message, the problem seems related to " 'repositories' (plural) Not supported". Please check it in your gulpfile.js first.

>>出于某种原因,它突然无法正常工作。

在它不起作用之前你做了什么改变吗?请检查代码中的更改以确保它们都正确无误。

Do you do any changes before it doesn't work? Please check the changes in your code to make sure they are all correct.

请创建一个新项目并逐个移动代码,这可以帮助我们确认哪行代码导致此问题问题。如果它在新项目中正常工作,则该问题应与Visual Studio相关。请检查您是否安装了任何VS扩展名
以及损坏Visual Studio的插件。

Please create a new project and move your code one by one, which could help us confirm which line of code causes this issue. If it works fine in new project, the problem should be related to Visual Studio. Please check whether you have installed any VS extensions and plugins which broken your Visual Studio.

如果可能,请将示例项目共享给OneDrive以帮助我们重现此问题。

If possible, please share a sample project to OneDrive to help us reproduce this issue.

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于Task Runner Explorer中的'package'任务无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆