Comments (20)
With Node.js v0.12.7 ?
from strapi.
yes
from strapi.
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.
from strapi.
You can have a look here: http://stackoverflow.com/questions/24548733/how-to-make-a-nodejs-file-executable-with-harmony-option
from strapi.
or here: http://stackoverflow.com/questions/3306518/cannot-pass-an-argument-to-python-with-usr-bin-env-python
from strapi.
I may have found a solution. It's on the fix/shebang
branch. Steps:
$ [sudo] npm uninstall strapi -g
$ [sudo] npm cache clear
$ git clone -b fix/shebang [email protected]:wistityhq/strapi.git
$ cd strapi
$ npm link
Can you please try this solution and give me your feedback?
from strapi.
Hey guys, I have same problem. I tried using fix/shebang
branch.
Result:
mocallu@mocallu-svf-elementary:~/strapi$ strapi login
/usr/local/bin/strapi: 2: /usr/local/bin/strapi: [[: not found
your Strapi email address
It was executed, but with /usr/local/bin/strapi: 2: /usr/local/bin/strapi: [[: not found
before.
I'm using node 4.1.1 on Ubuntu 14.04.
from strapi.
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?
from strapi.
Here is my result:
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.
from strapi.
Everything works fine? You just see an error before the logs?
from strapi.
I followed the readme:
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)
Do I have to do strapi login first ?
from strapi.
Looks like oauth.js & oauth2.js need
const PassportService = require('../passport');
instead of
const PassportService = require('../Passport');
from strapi.
Thanks! Just fixed this bug (see strapi/strapi-generate-users@84aefa9) and published v1.0.2
of strapi-generate-users
.
from strapi.
I was making a pull request when I saw your commit ;)
from strapi.
Looks like everything is working fine, but still have
/usr/bin/strapi: 2: /usr/bin/strapi: [[: not found
from strapi.
It should be fixed: 968e36d.
Can you try and give me your feedback please?
from strapi.
OK for me. You can close it.
from strapi.
What about you @mocallu?
from strapi.
Yes, it's working now. Thank you @loicsaintroch!
from strapi.
Perfect!
from strapi.
Related Issues (20)
- DZ in CM : display is really skimpy, some spaces are missing
- Enterprise SSO will not redirect properly and allow users to login
- [BUG] Strapi loses the connection to the server after saving changes on entities HOT 1
- [BUG] Drag and Drop is not working on List View editing
- core::5.0.0-discard-drafts migration fails when not using i18n HOT 6
- Condensed Main Nav: icons are misaligned + Strapi logo redirecting to Homepage is not clickable anymore HOT 1
- Unable to build the production Docker image due to sharp installation issues. HOT 1
- Types for ctx.query in custom controller appear to be broken HOT 1
- New project creation fails with type error HOT 3
- Component : when using Time field with only time type, format is not valid and entry can't be updated with time info
- Unable to use axios server side with the new `strapi plugin` command HOT 1
- v5: It does not allow to select multiples images in field: multiple media
- GET /upload/files or any GET from content-types always returns 401. HOT 4
- [BUG] Populating locales programatically breaks the admin
- Contributing to strapi HOT 1
- Stuck at the creating admin step , it never finishes HOT 1
- Where is created_at, updated_at fields in components ??? HOT 1
- Strapi import functionality is very very very slow (max 45KB/s) HOT 3
- Filter by text field with "&" symbol doesn't work
- d.ts files aren't linted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi.