-
Notifications
You must be signed in to change notification settings - Fork 9
Because of native dependencies update often breaks and the best way is to install a fresh copy
npm uninstall -g mango-cli
npm install -g mango-cli
You didn't complete the installation properly. Please reinstall.
Different Node versions aren't binary compatible (yet) so all native dependencies will break and need to be recompiled against used version. The quickest way is to reinstall mango-cli after every Node update.
Example error message (different Node.js version and OS type):
Message:
Missing binding mango-cli/node_modules/node-sass/vendor/linux-x64-57/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 9.x
Error: Can't find Python executable "python", you can set the PYTHON env variable.
Required system dependencies are missing, consult the Requierements section in the README.
Just choose one of these:
- A. Use npx like:
npx mango-cli@v1.3.0 build
(npx is bundled with npm@5.2.0+) - B. Use a Docker wrapper https://github.com/manGoweb/mango-cli-wrapper
- C. You can install any specific version of mango-cli as a project dependency
npm install --save mango-cli@v1.3.0
, then run it from package.json scripts. - D. Or you can have multiple Node versions with different global modules and switch between them using https://github.com/creationix/nvm
You're probably mixing ES modules import, export
with CommonJS require()
together, which is not supported. Please use only one system. We prefer the ES modules as it's a standard.
Async functions and generators are great, but they still needs a polyfill to work. Include babel-polyfill before your main application script on a CDN like so:
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"></script>
<script defer src="/scripts/index.js"></script>
You can pass a variable up to the layout from a page template. Basic example...