Comments (12)
@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.
@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.
Hi @aylabyuk,
Logs would be helpful, to understand whats happening
from apollo-universal-starter-kit.
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.
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.
@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.
@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.
I think now the scripts are Windows-friendly. Please clone the latest version of this repo and check.
from apollo-universal-starter-kit.
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.
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.
puts on 👓
so it has! 👍
from apollo-universal-starter-kit.
@aylabyuk Could you confirm, if it works for you or no?
from apollo-universal-starter-kit.
Related Issues (20)
- Multi Config Setup HOT 2
- Can't fully install dependencies after fresh download - expo-yarn-workspace postinstall fails HOT 4
- lerna stdout maxBuffer exceeded HOT 7
- [Question] Are there any plans to shift to any other package manager since lerna is no longer properly maintained. HOT 5
- Unable to perform a full page reload on edit post page in React Client. HOT 2
- Tests fail after clean installation
- feedback
- Update dependency react-navigation HOT 1
- How can i connect it with my Hasura database?
- Plans to upgrade to webpack 5 HOT 3
- Fail to build on a clean Fedora 33 installation
- Expo Go Android will not run. Says wrong sdk version of expo HOT 1
- New @server app dependencies install error (ambiguous syntax error)
- Standalone use
- master does not work
- Upgrade expo to latest SDK HOT 6
- Setting i18n debug to true reveals several potential issues
- Router is not worked ! HOT 6
- ..
- Demo app link on the readme file not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo-universal-starter-kit.