Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yo error when compiling Dockerfile #308

Open
boyobejamin opened this issue Jan 14, 2019 · 1 comment
Open

yo error when compiling Dockerfile #308

boyobejamin opened this issue Jan 14, 2019 · 1 comment

Comments

@boyobejamin
Copy link

Hey there, first time hubot user here. When creating my own docker container based off the Dockerfile in the repo, I get the following error message. I was able to get past it by changing the Dockerfile from using "node:4.8.3" to "node:latest". Not sure if that's the smart play but wanted to forward it along.


npm info install [email protected]
npm info postinstall [email protected]

[email protected] postinstall /usr/local/lib/node_modules/yo
yodoctor

Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✖ yo version

Your yo version is outdated.

Upgrade to the latest version by running:
npm install -g yo@latest

✖ npm version

Your npm version is outdated.

Upgrade to the latest version by running:
npm install -g npm

Found potential issues on your machine :(
[email protected] /usr/local/lib/node_modules/coffee-script

[email protected] /usr/local/lib/node_modules/generator-hubot
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] /usr/local/lib/node_modules/yo
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], @sindresorhus/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
npm info ok
Removing intermediate container d44f486c4fb2
---> f8e0ef60e175
Step 4/16 : USER hubot
---> Running in de557f1ea8b9
Removing intermediate container de557f1ea8b9
---> 085c6af7a8c7
Step 5/16 : WORKDIR /home/hubot
---> Running in b9cfe92a8280
Removing intermediate container b9cfe92a8280
---> 25e1d8aee32e
Step 6/16 : ENV BOT_NAME "rocketbot"
---> Running in 2dc24a731429
Removing intermediate container 2dc24a731429
---> 341a40a7355b
Step 7/16 : ENV BOT_OWNER "No owner specified"
---> Running in e42dc8557d06
Removing intermediate container e42dc8557d06
---> 0ae47fdd3c2b
Step 8/16 : ENV BOT_DESC "Hubot with rocketbot adapter"
---> Running in 1b33c2e7ea0d
Removing intermediate container 1b33c2e7ea0d
---> 5fd4f81595fe
Step 9/16 : ENV EXTERNAL_SCRIPTS=hubot-diagnostics,hubot-help,hubot-google-images,hubot-google-translate,hubot-pugme,hubot-maps,hubot-rules,hubot-shipit
---> Running in 1d8cde4cdd88
Removing intermediate container 1d8cde4cdd88
---> 181405ea8d3a
Step 10/16 : RUN yo hubot --owner="$BOT_OWNER" --name="$BOT_NAME" --description="$BOT_DESC" --defaults && sed -i /heroku/d ./external-scripts.json && sed -i /redis-brain/d ./external-scripts.json && npm install hubot-scripts
---> Running in f0275a6d7bf3
/usr/local/lib/node_modules/yo/lib/cli.js:204
insight.track(...firstCmd.args.slice(0, 2));
^^^

SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
The command '/bin/sh -c yo hubot --owner="$BOT_OWNER" --name="$BOT_NAME" --description="$BOT_DESC" --defaults && sed -i /heroku/d ./external-scripts.json && sed -i /redis-brain/d ./external-scripts.json && npm install hubot-scripts' returned a non-zero code: 1

@xlogin
Copy link

xlogin commented Jan 16, 2019

ME TOOOOOO! Is This project now no one to maintain inside?

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info addNameTag [ 'hubot-pugme', 'latest' ]
npm info addNameTag [ 'hubot-help', 'latest' ]
npm info attempt registry request try #1 at 12:05:37 PM
npm http request GET https://registry.npmjs.org/hubot-pugme
npm info attempt registry request try #1 at 12:05:37 PM
npm http request GET https://registry.npmjs.org/hubot-help
npm http 304 https://registry.npmjs.org/hubot-pugme
npm http 304 https://registry.npmjs.org/hubot-help
npm info install [email protected] into /home/hubot
npm info install [email protected] into /home/hubot
npm info installOne [email protected]
npm info installOne [email protected]
npm info preuninstall [email protected]
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm info postuninstall [email protected]
npm info preinstall [email protected]
npm info build /home/hubot/node_modules/hubot-help
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /home/hubot/node_modules/hubot-pugme
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
[email protected] node_modules/hubot-help
[email protected] node_modules/hubot-pugme

npm info ok
/bin/sh: 1: bin/hubot: not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants