I am trying to run mocha scripts, it's working on the local system but not running on Heroku server.
used commands: npm install mocha --save-dev and then : mocha
please refer to this image.
Related
I can't run bulma on Heroku and npm is not a Heroku command.
What should I type to do npm install bulma on Heroku? Do I need to use yarn?
brew install yarn, yarn add bulma doesn't work on Heroku either.
Here is the error I'm seeing:
Sass::SyntaxError: File to import not found or unreadable: bulma/sass/utilities/_all.sass.
Don't install Bulma yourself, and certainly don't try to install yarn via Homebrew.
Heroku's ephemeral filesystem will prevent it from working properly, interactive commands run on temporary one-off dynos that only exist as long as your session runs, and brew is mostly a macOS package manager (though a Linux version does technically exist).
Heroku will build your application for you as long as you tell it how.
Make sure to include a package.json and package.lock or yarn.lock that includes the JavaScript libraries you need
Tell Heroku which buildpacks to use for your application:
$ heroku buildpacks:set heroku/ruby
$ heroku buildpacks:add --index 1 heroku/nodejs
Make sure the Ruby buildpack is last:
$ heroku buildpacks
=== your-app Buildpack
1. heroku/nodejs
2. heroku/ruby
Deploy your code
Heroku will run the Node.js buildpack first and install JavaScript packages from your lock file, then run the Ruby buildpack and install your gems.
Termux is a Linux terminal emulator for Android. I want to install the Heroku CLI to be able to manage my Heroku apps on the go, I tried typing heroku to prompt the error message and link to the right package, but it gives me:
No command 'heroku' found, did you mean:
Command 'heyu' from package 'heyu'
I tried installing the CLI from the official website, but that didn't work out as well. What should I do?
Use the npm package heroku, its the complete CLI as what you find from the official website. Simply do
npm i -g heroku
Alternatively, you may use yarn. Install yarn by doing
pkg install yarn
and then install the Heroku CLI by
yarn add global heroku-cli#latest
I have gulp set up and working fine on one machine.
I have copied the directory to another machine which includes the package.json file that includes all the project dependencies.
Each time I run 'gulp' on the new machine it runs through the task but always finishes with
Error: Gem sass is not installed.
I have run sudo npm install to install dependencies from the the package.json and even tried to run npm install --save-dev gulp-ruby-sass
ANy ideas? thanks
It looks like your project uses the ruby gem sass, which means you need to run the following on each machine:
[sudo] gem install sass
For a bit more info, SASS started as a ruby gem but libSass allows users to run SASS using other languages.
npm install works when run on my local machine and on codeship.io, but fails on heroku.
This seems to be an issue with the phantom npm package. It has happened on two separate projects simultaneously. Both works locally, on codeship and on my deployment server, but wont run on heroku.
Founder of Codeship here.
Have you tried setting the phantom npm package as a development dependency so it doesn't get installed on Heroku?
I'm using mocha within yeoman as a build target: yeoman test.
But the only output I see is
Running "mocha:all" (mocha) task
Testing index.html
When I open that very same index.html in a browser, it works.
I'd expect the test results to show up in console.
My phantomjs was 1.4.1, and it's not working just like you. After I update phantomjs to 1.8, it's working.
I use MacOS, and the update commands are:
sudo brew update
sudo brew unlink phantomjs
sudo brew install phantomjs