A bug, or just me?
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 Are you on a windows machine?
Yes, Windows 10.
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 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.
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!
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 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 This is strange. After my change, every npm script runs without errors. I am on w10 as well...
Ahh! Works fine now at home but not at work. I'm running an old version of npm at work.
Problem solved!