$ node_modules/.bin/mocha test-js --require babel/register
/nix/store/42f6w07cbq0y5vjm3airici6926n29hz-babel-core-5.8.38/lib/transformation/file/index.js:671
throw err;
^
SyntaxError: /nix/store/zbhyj887pkzcjdgjhf5p6cdijiq61vw5-temp-0.8.3/lib/temp.js: Invalid number (226:20)
function mkdir(affixes, callback) {
var dirPath = generateName(affixes, 'd-');
fs.mkdir(dirPath, 0700, function(err) {
if (!err) {
deleteDirOnExit(dirPath);
}
at Parser.pp.raise (/nix/store/pdyrgg4ky9cgzznq1jdxxkl01992fcqc-babylon-5.8.38/lib/parser/location.js:24:13)
I’m not exactly sure what all that stuff does, but this looks like a relevant issue. Octal numbers like 0700 (as opposed to 0o700) lead to such errors.
I’m not exactly sure what all that stuff does, but this looks like a relevant issue. Octal numbers like
0700
(as opposed to0o700
) lead to such errors.