Closed t-kelly closed 8 years ago
I can reproduce the issue with node v4.2.2 and npm v2.14.7:
> ally.js@1.1.0 build:pre /…/ally.js
> node build/build.pre.js
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '/…/ally.js/dist/src/version.js'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at writeVersionFile (/…/ally.js/build/build.pre.js:25:6)
at Object.<anonymous> (/…/ally.js/build/build.pre.js:29:1)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
hm, running npm run clean
before npm run build
does the job…
Thanks for pointing this out! you should now get a proper instance after running npm run init
. If you continue to experience problems, that's possibly related to either npm v3.6.0 or node v5.7.0. a new issue would be appreciated :)
npm run clean
worked! Still worth investigating why this fails on a fresh clone tho?
npm run clean
removes and creates a few directories touched by the build tools. npm run build
assumes these directories exist and does not create them. The fix here is to simply run clean
before build
.
Fails after running
npm run init
on a fresh clone. npm-debug.log