The global install of this CLI started failing and I'm not sure why.
git clone https://github.com/superflycss/cli
cd cli
npm i -g
The log file is 10K lines log, but this is what it says at the end:
7353 verbose stack Error: ENOENT: no such file or directory, rename '/home/ole/.nvm/versions/node/v11.0.0/lib/node_modules/.staging/@superflycss/cli-5549c074/node_modules/@babel/code-frame' -> '/home/ole/.nvm/versions/node/v11.0.0/lib/node_modules/.staging/@babel/code-frame-78217d7a'
7354 verbose cwd /home/ole/SuperflyCSS/cli
7355 verbose Linux 4.15.0-45-generic
7356 verbose argv "/home/ole/.nvm/versions/node/v11.0.0/bin/node" "/home/ole/.nvm/versions/node/v11.0.0/bin/npm" "i" "-g"
7357 verbose node v11.0.0
7358 verbose npm v6.7.0
7359 error path /home/ole/.nvm/versions/node/v11.0.0/lib/node_modules/.staging/@superflycss/cli-5549c074/node_modules/@babel/code-frame
7360 error code ENOENT
7361 error errno -2
7362 error syscall rename
7363 error enoent ENOENT: no such file or directory, rename '/home/ole/.nvm/versions/node/v11.0.0/lib/node_modules/.staging/@superflycss/cli-5549c074/node_modules/@babel/code-frame' -> '/home/ole/.nvm/versions/node/v11.0.0/lib/node_modules/.staging/@babel/code-frame-78217d7a'
7364 error enoent This is related to npm not being able to find a file.
7365 verbose exit [ -2, true ]
I've tried removing all global modules per the instructions here and then reinstalling. However it still fails, even with a complete local module refresh (Nuke local node_modules
).
Also tried:
sudo rm -fr /home/ole/.npm-packages/*
And then npm i -g
and the result is still the same.
Update
I think it might be this bug: