Tôi đang sử dụng Grunt bằng plugin grunt-contrib-copy. Gần đây, một phiên bản mới (0.4.1) đã được cam kết trong đó có một tính năng mới tốt đẹp mà tôi muốn tận dụng. Nhưng, khi tôi cố gắng cập nhật bằng cách sử dụng npm update grunt-contrib-copy
, không có gì xảy ra.Bắt buộc cập nhật plugin grunt
Dưới đây là phiên bản hiện tại của tôi:
$ sudo npm list grunt-contrib-copy
[email protected] /Users/username/src/project/UI
└── [email protected]
Dưới đây là nỗ lực cập nhật của tôi:
$ sudo npm update grunt-contrib-copy
Không đầu ra - và npm list
vẫn thể hiện 0.4.0.
Thẩm phiên bản mới nhất có sẵn:
$ 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 <[email protected]>',
'cowboy <[email protected]>',
'shama <[email protected]>' ],
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: {} }
tôi đang thiếu gì ở đây? Tại sao npm không cập nhật plugin này lên phiên bản hiện có?
Sử dụng cài đặt đã thực hiện thủ thuật. Cảm ơn con trỏ tới lỗi mở. –
Có cách nào nhanh chóng để cập nhật tất cả các phụ thuộc không? – curtisblackwell