tachyons icon indicating copy to clipboard operation
tachyons copied to clipboard

A bug, or just me?

Open robjwood opened this issue 10 years ago • 9 comments

I followed the useful video guide, Tachyons - Setting up a new project, and I've hit a problem.

When I run npm start it fails at:

npm run build:watch

Further down it tells me:

Error: ENOENT: no such file or directory, stat 'C:\***\tachyons\run' at Error (native)

I've the latest (stable) versions of node and npm installed. Is this a genuine bug or have I missed something embarrassingly obvious?

robjwood avatar Jul 18 '16 23:07 robjwood

@robjwood Are you on a windows machine?

mrmrs avatar Jul 19 '16 23:07 mrmrs

Yes, Windows 10.

robjwood avatar Jul 19 '16 23:07 robjwood

I saw the line in the npm-debug.log that stated:

This is most likely a problem with the tachyons package, not with npm itself.

I've tried messing around with other npm builds for different projects and it often blames the package! I'm starting to think this may be a red herring.

It's made me realise I should probably get to understand npm a bit better first.

robjwood avatar Jul 21 '16 12:07 robjwood

@robjwood will try to dig into this. Might take me some time as I am a bit swamped and need to set up a VM to test this. Deepest apologies for your troubles.

mrmrs avatar Jul 21 '16 18:07 mrmrs

Ha ha, don't worry! I appreciate your efforts. I tried having a play with the linked version:

<link rel="stylesheet" href="https://npmcdn.com/[email protected]/css/tachyons.min.css">

I got much further with that than I thought. Looks really promising.

Keep up the good work!

robjwood avatar Jul 21 '16 18:07 robjwood

I think the problem are the single quotes in build:watch. I changed it to escaped double quotes and it runs fine:

Before: "build:watch": "watch 'npm run build' ./src/"

After: "build:watch": "watch \"npm run build\" ./src/"

MIKAGMR avatar Aug 01 '16 07:08 MIKAGMR

@MIKAGMR Good point. I've noticed this on other package.json files. I still get errors but not for "build:watch" any more.

Gives me some ideas though, thanks.

robjwood avatar Aug 02 '16 11:08 robjwood

@robjwood This is strange. After my change, every npm script runs without errors. I am on w10 as well...

MIKAGMR avatar Aug 02 '16 12:08 MIKAGMR

Ahh! Works fine now at home but not at work. I'm running an old version of npm at work.

Problem solved!

robjwood avatar Aug 22 '16 23:08 robjwood