Fork me on GitHub
#untangled
<
2017-05-10
>
cjmurphy06:05:20

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.

cjmurphy07:05:45

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'.

pedroteixeira13:05:35

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)

cjmurphy13:05:52

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?

pedroteixeira13:05:30

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)

cjmurphy13:05:43

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

cjmurphy13:05:42

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

claudiu14:05:34

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

cjmurphy14:05:49

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

cjmurphy14:05:11

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

cjmurphy14:05:25

But gulp watch is no better than before.