curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

Problem with graceful-fs #63

Closed edpittol closed 8 years ago

edpittol commented 8 years ago

It got an error with deprecated version of graceful-fs module.

During the installation:

$ npm install grunt-bower --save-dev
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.2.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
site@0.1.0 /Users/edpittol/Sites/grunt-bower-test
└── grunt-bower@0.21.2 

When I execute the grunt

$ grunt -vvv
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.

Registering "grunt-bower" local Npm module tasks.
Reading /Users/edpittol/Sites/grunt-bower-test/node_modules/grunt-bower/package.json...OK
Parsing /Users/edpittol/Sites/grunt-bower-test/node_modules/grunt-bower/package.json...OK
(node:10930) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:10930) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Loading "bower.js" tasks...OK
+ bower

My package.json

{
  "name": "grunt-bower-test",
  "description": "Grunt Bower Test",
  "version": "0.1.0",
  "license": "GPL-2.0",
  "private": true,
  "devDependencies": {
    "grunt": "^1.0.1",
    "grunt-bower": "^0.21.2"
  }
}
curist commented 8 years ago

It's more of a upstream issue, you may try npm ls graceful-fs at grunt-bower project root.

And did you actually facing any usage problems?

Eduardo Pittol notifications@github.com 於 2016年7月20日 週三 上午3:59寫道:

It got a error with deprecated version of graceful-fs module.

During the installation:

$ npm install grunt-bower --save-dev npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated lodash@1.2.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. site@0.1.0 /Users/edpittol/Sites/grunt-bower-test └── grunt-bower@0.21.2

When I execute the grunt

$ grunt -vvv Initializing Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.

Registering "grunt-bower" local Npm module tasks. Reading /Users/edpittol/Sites/grunt-bower-test/node_modules/grunt-bower/package.json...OK Parsing /Users/edpittol/Sites/grunt-bower-test/node_modules/grunt-bower/package.json...OK (node:10930) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. (node:10930) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. Loading "bower.js" tasks...OK

  • bower

My package.json

{ "name": "grunt-bower-test", "description": "Grunt Bower Test", "version": "0.1.0", "license": "GPL-2.0", "private": true, "devDependencies": { "grunt": "^1.0.1", "grunt-bower": "^0.21.2" } }

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/curist/grunt-bower/issues/63, or mute the thread https://github.com/notifications/unsubscribe-auth/AA5KGlaAOyhXs0lVfVWGyOVF1QQScyiUks5qXSybgaJpZM4JQG3H .

edpittol commented 8 years ago

The task works fine. But shows the warning message.

$ npm ls graceful-fs
grunt-bower-test@0.1.0 /Users/edpittol/Sites/grunt-bower-test
├─┬ grunt@1.0.1
│ └─┬ dateformat@1.0.12
│   └─┬ meow@3.7.0
│     └─┬ read-pkg-up@1.0.1
│       └─┬ read-pkg@1.1.0
│         └─┬ load-json-file@1.1.0
│           └── graceful-fs@4.1.4 
└─┬ grunt-bower@0.21.2
  └─┬ bower@1.2.8
    ├─┬ bower-config@0.5.2
    │ └── graceful-fs@2.0.3 
    ├─┬ bower-json@0.4.0
    │ └── graceful-fs@2.0.3 
    ├─┬ bower-registry-client@0.1.6
    │ └── graceful-fs@2.0.3 
    ├─┬ decompress-zip@0.0.8
    │ └── graceful-fs@3.0.8 
    ├─┬ fstream@0.1.31
    │ └── graceful-fs@3.0.8 
    ├── graceful-fs@2.0.3 
    └─┬ update-notifier@0.1.10
      └─┬ configstore@0.3.2
        └── graceful-fs@3.0.8 
shvelo commented 8 years ago

This is because grunt-bower depends on an older version of bower