rappasoft / laravel-boilerplate

The Laravel Boilerplate Project - https://laravel-boilerplate.com
https://rappasoft.com
5.59k stars 1.58k forks source link

Error yarn install #1147

Closed widg closed 6 years ago

widg commented 6 years ago
vagrant@homestead:~/code/copy$ yarn install --no-bin-links
yarn install v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @vue/test-utils@1.0.0-beta.25" has unmet peer dependency "vue-template-compiler@^2.x".
warning " > babel-jest@22.4.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
warning " > jest-vue-preprocessor@1.4.0" has unmet peer dependency "vue-template-compiler@2.5.x".
warning " > jest-vue-preprocessor@1.4.0" has unmet peer dependency "vue-template-es2015-compiler@1.6.x".
warning "laravel-mix > img-loader@3.0.0" has unmet peer dependency "imagemin@^5.0.0".
[4/4] Building fresh packages...
[1/3] ⠄ @coreui/coreui
[2/3] ⠄ uglifyjs-webpack-plugin
[3/3] ⠄ node-sass
[-/3] ⠄ waiting...
error /home/vagrant/code/copy/node_modules/@coreui/coreui: Command failed.
Exit code: 127
Command: coreui-plugin-npm-postinstall
Arguments:
Shuyinsama commented 6 years ago

Can you post the full error or the full yarn-error.log output? This seems to be an issue with coreui. But I don’t see any arguments or actuall error besides code 127. Also have you tried yarn install instead of yarn install —no-bin-links

widg commented 6 years ago

https://gist.github.com/widg/3a51ba8322b956215eed78d3f59ce311

Shuyinsama commented 6 years ago

Thanks. It seems to be a syntax error in your package.json in /home/vagrant/code/copy folder. Would you mind posting that one?

widg commented 6 years ago
{
  "private": true,
  "scripts": {
    "dev": "npm run development",
    "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "npm run development -- --watch",
    "watch-poll": "npm run watch -- --watch-poll",
    "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "prod": "npm run production",
    "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "test": "cross-env NODE_ENV=test jest",
    "tdd": "npm run test -- --watch --notify"
  },
  "devDependencies": {
    "@coreui/coreui": "^2.0.12",
    "@fortawesome/fontawesome-svg-core": "^1.2.2",
    "@fortawesome/free-brands-svg-icons": "^5.2.0",
    "@fortawesome/free-regular-svg-icons": "^5.2.0",
    "@fortawesome/free-solid-svg-icons": "^5.2.0",
    "@vue/test-utils": "^1.0.0-beta.10",
    "axios": "^0.18",
    "babel-jest": "^22.1.0",
    "bootstrap": "^4.0.0",
    "cross-env": "^5.1",
    "jest": "^22.1.4",
    "jest-vue-preprocessor": "^1.3.1",
    "jquery": "^3.2",
    "laravel-mix": "^2.0",
    "lodash": "^4.17.5",
    "pace": "github:HubSpot/pace#v1.0.2",
    "perfect-scrollbar": "^1.4.0",
    "popper.js": "^1.12.4",
    "simple-line-icons": "^2.4.1",
    "sweetalert2": "^7.0.7",
    "vue": "^2.5.7"
  },
  "jest": {
    "testURL": "http://localhost",
    "roots": [
      "<rootDir>/tests/Javascript/"
    ],
    "moduleNameMapper": {
      "^vue$": "vue/dist/vue.common.js"
    },
    "moduleFileExtensions": [
      "js",
      "vue"
    ],
    "transform": {
      "^.+\\.js$": "<rootDir>/node_modules/babel-jest",
      ".*\\.(vue)$": "<rootDir>/node_modules/jest-vue-preprocessor"
    }
  },
  "dependencies": {
    "@coreui/coreui-plugin-npm-postinstall": "^1.0.2"
  }
}