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 simply executing "npkg folderIn folderOut" (Fedora 20, 64 bits) #1

Open
q2dg opened this issue May 26, 2014 · 2 comments
Open

Comments

@q2dg
Copy link

q2dg commented May 26, 2014

/usr/share/coffee-script/lib/coffee-script/helpers.js:216
      codeLine = codeLine.slice(0, start) + colorize(codeLine.slice(start, end
                          ^
TypeError: Cannot call method 'slice' of undefined
  at Object.exports.prettyErrorMessage (/usr/share/coffee-script/lib/coffee-script/helpers.js:216:27)
  at compileScript (/usr/share/coffee-script/lib/coffee-script/command.js:199:25)
  at /usr/share/coffee-script/lib/coffee-script/command.js:143:18
  at fs.js:266:14
@yocontra
Copy link
Member

Last commit was october 2011 so I'm sure it's a coffee-script compiler change issue. Try installing coffee-script 1.6.0 (or 1.5.0) explicitly in the npkg node_modules and see if that fixes it

@q2dg
Copy link
Author

q2dg commented May 27, 2014

Above error was having installed coffee-script via Yum. If I do what you say (npm -g install coffee-script or npm -g install coffee-script@1.5.0, doesn't matter) I have another error:

/usr/lib/node_modules/npkg/lib/main.coffee:37:31: error: octal literal '0755' must be prefixed with '0o'
fs.mkdirSync dirs[dir], 0755

If I do, npm -g install coffee-script@1.6.0, the error is:

TypeError: Object # has no method 'replace'
at Module._compile (module.js:377:21)
at Object.exports.run (/usr/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:124:25)
at compileScript (/usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:166:29)
at /usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:141:18
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)

Well, I think it's time to move to nexe (https://github.com/crcn/nexe) or something similar.
Thanks!!

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