untangled

NEW CHANNEL: #fulcro
cjmurphy 2017-05-10T06:46:20.126553Z

I can see now. npm i ought to be run in a directory that has a package.json file in it. Running npm i in the untangled-ui project directoy gives reasonable results because there's a package,json file already there.

cjmurphy 2017-05-10T07:25:45.531960Z

gulp watch gives Failed to load external module babel-register then Requiring external module babel-core/register, and finally fails with Error: Cannot find module 'postcss-Nested'.

pedroteixeira 2017-05-10T13:14:35.301816Z

I'd suggest yarn over npm, it worked find when replacing it on the untangled template (yarn generates a yarn.lock, helps avoiding different install states across time+machines)

cjmurphy 2017-05-10T13:33:52.679626Z

Thanks @pedroteixeira. I just installed yarn and that went fine (I'm on Linux, Debian style). If yarn is something equivalent to npm, are there equivalent commands to npm i -g gulp and npm i?

pedroteixeira 2017-05-10T13:35:30.712412Z

yes, has similar CLI interface https://yarnpkg.com/en/docs/cli/ (is dev/maintained by folks at facebook) yarn is faster than npm, and tries to be more "atomic" over the state of node_modules (with npm, it's quite easy to find our node_modules in a corrupted state)

cjmurphy 2017-05-10T13:41:43.841664Z

Basically I will just be installing gulp and then issuing gulp watch. Not sure what that npm i command was all about?

cjmurphy 2017-05-10T13:45:42.927665Z

I tried yarn install. It tells me not high enough version of Node.js.

claudiu 2017-05-10T14:05:34.384804Z

@cjmurphy you could try for easy node version management https://github.com/creationix/nvm

cjmurphy 2017-05-10T14:32:49.041434Z

My aim is to be able to run gulp watch in the untangled-ui project directory.

cjmurphy 2017-05-10T14:33:11.050315Z

yarn add gulp seemed to work, with a few warnings.

cjmurphy 2017-05-10T14:35:25.104897Z

But gulp watch is no better than before.