filamentgroup / grunt-criticalcss

Grunt wrapper for criticalcss
MIT License
530 stars 27 forks source link

Module no longer installs - phantomjs #47

Closed adiba89arif closed 7 years ago

adiba89arif commented 7 years ago

Since updating to latest NPM, the module no longer installs. It hangs at phantomjs install. (npm: 4.2.0, node: v6.0.0):

$ npm update npm WARN deprecated wrench@1.4.4: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years. 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 node-uuid@1.4.7: use uuid module instead npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated tough-cookie@0.12.1: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN deprecated graceful-fs@1.1.14: 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@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.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 minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated npmconf@2.0.9: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN deprecated CSSselect@0.7.0: the module is now available as 'css-select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated win-spawn@2.0.0: use cross-spawn or cross-spawn-async instead. npm WARN prefer global marked@0.3.5 should be installed with -g npm WARN prefer global bower@1.3.12 should be installed with -g npm WARN prefer global coffee-script@1.10.0 should be installed with -g npm WARN prefer global jshint@2.8.0 should be installed with -g

phantomjs@1.9.13 install /Users/aa/Desktop/working files/rmhc/node_modules/phantomjs node install.js Download already available at /var/folders/9h/515hzz4j7xb8_jsf18yfn1jj60m4p3/T/phantomjs/phantomjs-1.9.8-macosx.zip Extracting zip contents Removing /Users/aa/Desktop/working files/rmhc/node_modules/phantomjs/lib/phantom Copying extracted folder /var/folders/9h/515hzz4j7xb8_jsf18yfn1jj60m4p3/T/phantomjs/phantomjs-1.9.8-macosx.zip-extract-1487705220034/phantomjs-1.9.8-macosx -> /Users/aa/Desktop/working files/rmhc/node_modules/phantomjs/lib/phantom

adiba89arif commented 7 years ago

npm install --save-dev karma-phantomjs-launcher

  1. Check for the version: npm -v
  2. Execute: sudo npm cache clean -f
  3. Execute: sudo npm install -g n
  4. Downgrade NPM: sudo n 6.7.0
  5. Node_Module: Update the svg-to-png dependency in grunticon-lib folder from version 2 to version 3 (package.json)
  6. Node_Module: Update the svg-to-png dependency in svg-to-png folder from version 2 to version 3 (package.json)
  7. Execute: npm install grunt-grunticon --save-dev