You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ strapi new test
/usr/bin/strapi: 2: /usr/bin/strapi: [[: not found
info: Your new application `test` is ready at `/home/sylvainlap/DEV/WORKSPACE/test`.
warn: You do not have a `.strapirc` file at `/home/sylvainlap`.
warn: First, you need to create an account on http://dashboard.strapi.io/
warn: Then, execute `$ strapi login` to start the experience.
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ strapi new test
/usr/bin/strapi: 2: /usr/bin/strapi: [[: not found
info: Your new application `test` is ready at `/home/sylvainlap/DEV/WORKSPACE/test`.
warn: You do not have a `.strapirc` file at `/home/sylvainlap`.
warn: First, you need to create an account on http://dashboard.strapi.io/
warn: Then, execute `$ strapi login` to start the experience.
sylvainlap@CanHardXI:~/DEV/WORKSPACE$ cd test/
sylvainlap@CanHardXI:~/DEV/WORKSPACE/test$ strapi start
/usr/bin/strapi: 2: /usr/bin/strapi: [[: not found
module.js:338
throw err;
^
Error: Cannot find module '../Passport'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/sylvainlap/DEV/WORKSPACE/test/modules/user/api/services/protocols/oauth.js:8:25)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/sylvainlap/DEV/WORKSPACE/test/modules/user/api/services/protocols/index.js:4:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/sylvainlap/DEV/WORKSPACE/test/modules/user/api/services/passport.js:16:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
Activity
loicsaintroch commentedon Oct 3, 2015
With Node.js v0.12.7 ?
sylvainlap commentedon Oct 3, 2015
yes
loicsaintroch commentedon Oct 3, 2015
All right. I'll look into it this weekend and keep you informed as soon as I have a solution both for Node.js v0.12.x and Node.js v4.
sylvainlap commentedon Oct 3, 2015
You can have a look here: http://stackoverflow.com/questions/24548733/how-to-make-a-nodejs-file-executable-with-harmony-option
sylvainlap commentedon Oct 3, 2015
or here: http://stackoverflow.com/questions/3306518/cannot-pass-an-argument-to-python-with-usr-bin-env-python
loicsaintroch commentedon Oct 3, 2015
I may have found a solution. It's on the
fix/shebangbranch. Steps:Can you please try this solution and give me your feedback?
mocallu commentedon Oct 3, 2015
Hey guys, I have same problem. I tried using
fix/shebangbranch.Result:
It was executed, but with
/usr/local/bin/strapi: 2: /usr/local/bin/strapi: [[: not foundbefore.I'm using node 4.1.1 on Ubuntu 14.04.
loicsaintroch commentedon Oct 4, 2015
Okey, thank you for your feedback @mocallu.
What about you @sylvainlap? Do you still have this issue or you have the same error than @mocallu?
sylvainlap commentedon Oct 4, 2015
Here is my result:
loicsaintroch commentedon Oct 4, 2015
Everything works fine? You just see an error before the logs?
sylvainlap commentedon Oct 4, 2015
I followed the readme:
Do I have to do strapi login first ?
sylvainlap commentedon Oct 4, 2015
Looks like oauth.js & oauth2.js need
instead of
loicsaintroch commentedon Oct 4, 2015
Thanks! Just fixed this bug (see strapi/strapi-generate-users@84aefa9) and published
v1.0.2ofstrapi-generate-users.sylvainlap commentedon Oct 4, 2015
I was making a pull request when I saw your commit ;)
sylvainlap commentedon Oct 4, 2015
Looks like everything is working fine, but still have
loicsaintroch commentedon Oct 5, 2015
It should be fixed: 968e36d.
Can you try and give me your feedback please?
sylvainlap commentedon Oct 5, 2015
OK for me. You can close it.
loicsaintroch commentedon Oct 5, 2015
What about you @mocallu?
mocallu commentedon Oct 5, 2015
Yes, it's working now. Thank you @loicsaintroch!
loicsaintroch commentedon Oct 5, 2015
Perfect!