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

Error message while using the command "ctmlc" #1

Open
postpostscript opened this issue May 22, 2015 · 11 comments
Open

Error message while using the command "ctmlc" #1

postpostscript opened this issue May 22, 2015 · 11 comments
Assignees
Labels

Comments

@postpostscript
Copy link

I used the command ctmlc testing.ctml, and got an error:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

The content of testing.html is

-html
    -head
        -title
            Title!
        -
        -script [src="test.js"]
        -
    -
    -body
        This is some text
    -
-
@weaversam8
Copy link
Owner

Your code syntax looks good, make sure you're updated to the latest version, 0.3.4 as of right now. Additionally, you said that was the contents of index.html while you executed the command on index.ctml.

@postpostscript
Copy link
Author

I meant to say testing.ctml both times.

@postpostscript
Copy link
Author

I am on version 0.3.4. I used the npm install -g ctml command to install.

@weaversam8
Copy link
Owner

Try running the software with no arguments. Does it print usage information?

@postpostscript
Copy link
Author

It does.

@weaversam8
Copy link
Owner

Try executing it with the --file option. Additionally, try passing .\filename

@postpostscript
Copy link
Author

All of these had the same error:
ctmlc --file 'testing.ctml'
ctmlc --file testing.ctml
ctmlc --file ./testing.ctml
ctmlc ./testing.ctml
ctmlc testing.ctml

@weaversam8
Copy link
Owner

Run npm link in the directory that CTML was installed in. See if that works for a temporary fix.

@postpostscript
Copy link
Author

When I ran npm link I got the error messages:

$ npm link
npm ERR! Error: ENOENT, stat '/usr/lib/node_modules/ctml'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.14.27-25.47.amzn1.x86_64
npm ERR! command "node" "/usr/bin/npm" "link"
npm ERR! cwd /usr/lib/node_modules/ctml
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.3.6
npm ERR! path /usr/lib/node_modules/ctml
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, open 'npm-debug.log'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.14.27-25.47.amzn1.x86_64
npm ERR! command "node" "/usr/bin/npm" "link"
npm ERR! cwd /usr/lib/node_modules/ctml
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.3.6
npm ERR! path npm-debug.log
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/lib/node_modules/ctml/npm-debug.log
npm ERR! not ok code 0

@weaversam8
Copy link
Owner

Run it in the directory in which it was installed by NPM global. This should be in your appdata directory.

@weaversam8
Copy link
Owner

Try running all of the suggested commands with sudo. The npm install -g ctml should be sudo as well.
EDIT: If it wasn't globally installed with sudo, you'll need to uninstall it and reinstall.

@weaversam8 weaversam8 self-assigned this May 23, 2015
@weaversam8 weaversam8 added the bug label May 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants