-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Dev Setup: Issues
If you are having a problem not listed here, jump into our dev chat and let's get it fixed and then documented here. You might want to check your versions of node, npm, and Python, and also make sure your GitHub copy of CodeCombat is up-to-date.
If your npm install
step fails, try running these commands to install the environment more piecemeal:
npm install node-sass
npm install --ignore-scripts
bower install
npm install
Or, if you have an ENOENT
error, you can try running this:
npm install bower
.
The ENOENT error is generally about the public directory not being built. Most of the time it is just missing bower
package.
If you get errors with bower not being able to clone git repositories, try cloning over https.
If Sass brings up an error about file encodings being wrong, add this to your .bash_profile:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
If you only see a white screen, check to see if the first line of app.css is ERROR: Cannot load compass
. If so, try either uninstalling compass (gem uninstall compass
) or re-installing it if you actually need it (gem install compass --pre
).
If you get a white screen on http://localhost:3000 with no JavaScript errors, or if your page loads fine but no CSS is applied, it could be that your brunch isn't compiling Sass properly (public\stylesheets\app.css
is like 70KB instead of >600KB). We don't know of any current issues that are causing this, or workarounds, but it has been a common symptom in the past with different Sass compilation setups, especially on Windows.
This error occurs after upgrading to Mac OS 10.14. It may happen because you don't have the most recent version of XCode Command Line Tools installed.
Download Command Line Tools (macOS 10.14)
from downloads for apple developers.
Install the tools.
Restart the terminal.
Delete the .node-gyp
folder from your root directory as well as your node_modules
folder.
Then install it piecemeal as shown above.
This partial solution was found from this stack overflow thread.
At this point if you're still getting the error, check your 'MACOSX_DEPLOYMENT_TARGET'
version in your /Users/<USERNAME>/.node-gyp/6.12.2/include/node/common.gypi
file.
You may need to manually change the version to your MacOS version which was (e.g. 10.14
).
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views