Giter VIP home page Giter VIP logo

Comments (12)

aylabyuk avatar aylabyuk commented on May 16, 2024 1

@Vlasenko thank you for the effort. I will test this out as soon as I get back to office where I use windows. I cant test it right now since my personal computer runs on ubuntu. I will let you know then. By the way this is a cool project..kudos.

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024 1

@josephdburdick I think right now it is done like you describe :) The start target has been split into start and watch. And instead of using postinstall for Heroku, now heroku-postbuild is utilized instead.

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

Hi @aylabyuk,

Logs would be helpful, to understand whats happening

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

Though I bet the problem is caused by commands inside "scripts", e.g. by this construction:
"start": "if [ \"$NODE_ENV\" = production ]; then

from apollo-universal-starter-kit.

aylabyuk avatar aylabyuk commented on May 16, 2024

sorry here is the log from npm-debug.log file

here is the start of the error.

97 error Windows_NT 10.0.14393
98 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i"
99 error node v7.7.1
100 error npm v4.1.2
101 error code ELIFECYCLE
102 error [email protected] postinstall: if [ "$NODE_ENV" = production ]; then npm run clean && npm run build && npm run migrate && npm run seed; fi
102 error Exit status 1
103 error Failed at the [email protected] postinstall script 'if [ "$NODE_ENV" = production ]; then npm run clean && npm run build && npm run migrate && npm run seed; fi'.
103 error Make sure you have the latest version of node.js and npm installed.
103 error If you do, this is most likely a problem with the apollo-fullstack-starter-kit package,
103 error not with npm itself.
103 error Tell the author that this fails on your system:
103 error if [ "$NODE_ENV" = production ]; then npm run clean && npm run build && npm run migrate && npm run seed; fi
103 error You can get information on how to open an issue for this project with:
103 error npm bugs apollo-fullstack-starter-kit
103 error Or if that isn't available, you can get their info via:
103 error npm owner ls apollo-fullstack-starter-kit
103 error There is likely additional logging output above.
104 verbose exit [ 1, true ]

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

@aylabyuk I've pushed commit that might fix this issue. Unfortunately right now I can't test it under Windows. Could you update source code, try under Windows and report back?

from apollo-universal-starter-kit.

aylabyuk avatar aylabyuk commented on May 16, 2024

@Vlasenko I have updated the code and run npm install --save-dev if-env. still have issue installing

here is the error log:

97 error Windows_NT 10.0.14393
98 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i"
99 error node v7.7.1
100 error npm v4.1.2
101 error code ELIFECYCLE
102 error [email protected] postinstall: if-env NODE_ENV=production && npm run clean && npm run build && npm run migrate && npm run seed
102 error Exit status 1
103 error Failed at the [email protected] postinstall script 'if-env NODE_ENV=production && npm run clean && npm run build && npm run migrate && npm run seed'.
103 error Make sure you have the latest version of node.js and npm installed.
103 error If you do, this is most likely a problem with the apollo-fullstack-starter-kit package,
103 error not with npm itself.
103 error Tell the author that this fails on your system:
103 error if-env NODE_ENV=production && npm run clean && npm run build && npm run migrate && npm run seed
103 error You can get information on how to open an issue for this project with:
103 error npm bugs apollo-fullstack-starter-kit
103 error Or if that isn't available, you can get their info via:
103 error npm owner ls apollo-fullstack-starter-kit
103 error There is likely additional logging output above.
104 verbose exit [ 1, true ]

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

I think now the scripts are Windows-friendly. Please clone the latest version of this repo and check.

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

Actually slightly changing Getting Started steps, I've managed to make scripts sections easier then it was, yet keeping them cross-platform.

from apollo-universal-starter-kit.

josephdburdick avatar josephdburdick commented on May 16, 2024

Perhaps instead of using an inline conditional statement there could be separate npm scripts and/or the use of concurrently. I think it would help alleviate ambiguity.

from apollo-universal-starter-kit.

josephdburdick avatar josephdburdick commented on May 16, 2024

puts on 👓

so it has! 👍

from apollo-universal-starter-kit.

larixer avatar larixer commented on May 16, 2024

@aylabyuk Could you confirm, if it works for you or no?

from apollo-universal-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.