/opt/watcher/app-types/node/start.sh: line 49: null: command not found


I was trying to create a glitch node.js app with grunt-android-emulator. However, the status keeps returning as " /opt/watcher/app-types/node/start.sh: line 49: null: command not found"


Hi @PineappleBox, welcome to Glitch!

Can you provide a snippet of your package.json file that includes the “scripts” node so we can take a look? Or provide the name of your project?

My guess is that you’re asking node to do something on startup that isn’t available, but there can be a number of different reasons for that to be the case.


Okay, here you go:
“name”: “grunt-android-emulator”,
“description”: “Create, Start, Unlock, Stop Android emulators, Install APK, Start Activities”,
“title”: “Grunt Android Emulator”,
“version”: “0.1.7”,
“homepage”: “https://github.com/tolis-e/grunt-android-emulator”,
“repository”: {
“type”: “git”,
“url”: “git://github.com/tolis-e/grunt-android-emulator.git”
“author”: {
“name”: “Tolis Emmanouilidis”,
“url”: “http://github.com/tolis-e/grunt-android-emulator
“maintainers”: {
“name”: “Tolis Emmanouilidis”,
“email”: "tolisemm@gmail.com"
“licenses”: [
“type”: “Apache-2.0”,
“url”: “http://www.apache.org/licenses/LICENSE-2.0
“keywords”: [
“android emulator”,
“dependencies”: {
“shelljs”: “~0.7.6”,
“grunt”: “^1.0.3”,
“grunt-android-emulator”: “^0.1.6”
“devDependencies”: {
“grunt”: “~0.4.5”,
“grunt-contrib-jshint”: “~0.10.0”


The problem here is that you don’t even have a scripts entry in your package.json. The node startup script uses the value of “scripts/start” and executes the command(s) it finds there. Since you don’t have one it tries to execute null and returns this error message.

The default node.js project’s “scripts” node looks like this:

  "scripts": {
    "start": "node server.js"

If you put something like that in there that contains a command that bash can execute and this error will go away.

Hope this helps!