dimanche 25 février 2018

npm install hang on Mac OS X on Laravel 5 Project

Environment

⚡️  node -v                                                                                                                   
v8.9.4                                                                                                                              
⚡️  npm -v                                                                                                                    
5.6.0                                                                                                                               
⚡️  php -v                                                                                                                    
PHP 7.1.4 (cli) (built: May  6 2017 10:02:00) ( NTS )                                                                               
Copyright (c) 1997-2017 The PHP Group                                                                                               
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies                                                                       
    with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend Technologies                                                         

Mac OS X 10.12.6

I have this on my package.json

{
  "private": true,
  "devDependencies": {
    "grunt": "^1.0.1",
    "grunt-contrib-clean": "^1.0.0",
    "grunt-contrib-compress": "^1.4.1",
    "grunt-contrib-concat": "^1.0.1",
    "grunt-contrib-cssmin": "^1.0.2",
    "grunt-contrib-htmlmin": "^1.5.0",
    "grunt-contrib-uglify": "^1.0.2",
    "grunt-contrib-watch": "^1.0.0",
    "grunt-critical-css": "^0.1.3",
    "grunt-penthouse": "^0.3.0",
    "gulp": "^3.9.1",
    "laravel-elixir": "*"
  },
  "dependencies": {
    "angular-ckeditor": "^0.3.1",
    "grunt": "^1.0.1",
    "ng-tags-input": "^3.2.0"
  },
  "name": "gg-web-app",
  "version": "1.0.0",
  "main": "Gruntfile.js",
  "directories": {
    "test": "tests"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+ssh://git@bitbucket.org/gg-web-app.git"
  },
  "author": "",
  "license": "ISC",
  "homepage": "https://bitbucket.org/gg-web-app#readme",
  "description": ""
}

I run npm install

I kept getting

> fsevents@1.1.3 install /Users/jdoe/Sites/jdoe/node_modules/fsevents
> node install

[fsevents] Success: "/Users/jdoe/Sites/jdoe/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> phantomjs@1.9.11 install /Users/jdoe/Sites/jdoe/node_modules/phantomjs
> node install.js

WARN invalid config loglevel="notice"
Download already available at /var/folders/54/y_678c6n7q7_pgk1v5lkzwnr0000gp/T/phantomjs/phantomjs-1.9.7-macosx.zip
Extracting zip contents
Removing /Users/jdoe/Sites/jdoe/node_modules/phantomjs/lib/phantom
Copying extracted folder /var/folders/54/y_678c6n7q7_pgk1v5lkzwnr0000gp/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1519572779384/phantomjs-1.9.7-macosx -> /Users/jdoe/Sites/jdoe/node_modules/phantomjs/lib/phantom

Why does it has something to do with phantomjs stuff ?

Why does it hang for so long ?

Is it because of my internet access ?

I don't think I used anything too complicated in my package.json.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2Ci4CND
via IFTTT

Aucun commentaire:

Enregistrer un commentaire