Comments (14)
ah I see why, its because the above cmd line projectz compile
would expect projectz to be in your path env.
Instead it should be executed like shown here
Example:
node ./node_modules/projectz/bin/projectz compile
Would be a nice feature to have this setup globally so we can run as projectz compile
from projectz.
It seems to me that if you provide something in bin
then people are going to be expecting to be able to run it as an executable, not requiring node <file>
.
I have it in my paths and I'm probably not the only one, since I don't even know how it got to my env.
from projectz.
when projectz is not installed globally then you would have to run as node ./node_modules/bin/projectz compile
unless you have a special path pointing to ./node_modules/bin
, (windows users wont have this path by default)
if projectz is installed globally then the bin file is detected via the bin package entry by npm and copied to npm's path so that projectz compile
would work.
In both of these scenarios I'm not getting a no such file or directory
error and instead it compiles correctly.
- What happens when you run
node ./node_modules/bin/projectz compile
? does that work? - Also does projectz exist in your global npm modules?
from projectz.
When using it locally, you can probably shorthand it to:
./node_modules/.bin/projectz compile
Which uses the executable that npm creates for us.
In regards to your global install, we have instructions for installing node that should fix that here, however local installs are much better in terms of everything in your project being self-contained.
from projectz.
Thank you, @pflannery and @balupton. I do not have it globally. I like it local in devDependencies
.
Running ./node_modules/.bin/projectz compile
also give me : No such file or directory
.
from projectz.
This is v0.4.1
.
from projectz.
whats your os? is it ubuntu?
what happens when you run node
does that error also?
from projectz.
It is Ubuntu 15.04.
$ node
gets me into node shell. Otherwise I wouldn't be able to get any work done
from projectz.
Confirmed on Ubuntu 14.10...
$ ./node_modules/.bin/projectz compile
: No such file or directory
$ node ./node_modules/.bin/projectz compile
info: Initialising project
$ ./node_modules/.bin/projectz --version
: No such file or directory
$ node ./node_modules/.bin/projectz --version
0.4.1
$ npm install projectz -g
$ projectz
: No such file or directory
from projectz.
ok I can recreate this on ubuntu 14.04.
when I run node ./node_modules/projectz/out/bin/projectz.js compile
it works. I will keep looking
from projectz.
I think what's happened is that publishing the npm package from my windows box has put crlf's in to all the package files. There is an issue here
I dont usually have crlf in any of my projects but they seem to of crept back in some where along the lines.
I'm going to sort my git settings out and submit a patch...I've also noticed an issue when using the -d
option so i will fix that too
from projectz.
Turns out Github for Windows is ignoring my git line ending preferences and using CRLF in every clone I make. Will have to use the terminal to clone from now on :'( (hoping for a fix)
from projectz.
fixed in 921d628
@mightyiam please confirm
from projectz.
Thank you, @pflannery. Confirmed fixed.
from projectz.
Related Issues (20)
- Your .dependabot/config.yml contained invalid details HOT 1
- Thoughts on plugins HOT 2
- add executable instructions within deno instructions
- Better name? HOT 4
- Cloud Service that routinely sends PRs with Projectz updates HOT 2
- backers: fetch from patreon HOT 2
- Document JSPM's `jsnext:main` field HOT 1
- http://balupton.com and https://balupton.com create different users HOT 1
- Fetch Sponsors Automatically HOT 4
- TypeError: Class constructor Fellow cannot be invoked without 'new' HOT 1
- Update backers readme description to note it also does maintainers and contributors
- Block for Table of Contents HOT 1
- Plugin System HOT 3
- Wizardly to UNPKG HOT 1
- listing of the projects that use projectz HOT 1
- Use remark HOT 4
- Greenkeeper as a contributor HOT 3
- Convert from Flow Type to TypeScript HOT 4
- Update Editions Link HOT 1
- (cli): Nothing shows up if no arguments were provided HOT 3
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 projectz.