我正在使用Grunt和grunt-contrib-copy插件.最近推出了一个新版本(0.4.1),它有一个很好的新功能,我想利用它.但是,当我尝试更新使用时npm update grunt-contrib-copy,没有任何反应.
这是我目前的版本:
$ sudo npm list grunt-contrib-copy
UI@2.0.89 /Users/username/src/project/UI
??? grunt-contrib-copy@0.4.0
Run Code Online (Sandbox Code Playgroud)
这是我的更新尝试:
$ sudo npm update grunt-contrib-copy
Run Code Online (Sandbox Code Playgroud)
没有输出 - npm list仍然显示0.4.0.
验证最新版本:
$ sudo npm info grunt-contrib-copy
npm http GET https://registry.npmjs.org/grunt-contrib-copy
npm http 200 https://registry.npmjs.org/grunt-contrib-copy
{ name: 'grunt-contrib-copy',
description: 'Copy files and folders.',
'dist-tags': { latest: '0.4.1' },
versions:
[ '0.2.0',
... other versions snipped ...
'0.4.0',
'0.4.1' ],
maintainers:
[ 'tkellen <tyler@sleekcode.net>',
'cowboy <cowboy@rj3.net>',
'shama <kyle@dontkry.com>' ],
time:
{ '0.2.0': '2012-09-10T22:26:15.048Z',
... other versions snipped ...
'0.4.0': '2013-02-18T17:24:36.757Z',
'0.4.1': '2013-03-26T20:08:14.079Z' },
author: 'Grunt Team (http://gruntjs.com/)',
repository:
{ type: 'git',
url: 'git://github.com/gruntjs/grunt-contrib-copy.git' },
version: '0.4.1',
... other config info snipped ...
dist:
{ shasum: 'f0753b40ae21bb706daefb0b299e03cdf5fa9d6e',
tarball: 'http://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-0.4.1.tgz' },
directories: {} }
Run Code Online (Sandbox Code Playgroud)
我在这里错过了什么?为什么npm不会将此插件更新为当前可用的版本?
Qor*_*ani 10
目前NPM中有一个公开的问题,谈论同样的事情.当npm install工作正常时,npm update不会更新devDependencies.
https://github.com/isaacs/npm/issues/2369
所以我建议尝试使用npm install代替:
$ sudo npm install grunt-contrib-copy --save-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11745 次 |
| 最近记录: |