Closed Teamop closed 7 years ago
The last issue from Windows trilogy (#60, #58 and #61) 🔱
This is fairly easy to solve: rimraf
package is being promisified and the returned function does not have the other properties like sync
that were on the original function. Using non-promisified rimraf
for this solves the problem.
: path.join(prefix, 'bin')
- const rimraf = promisify(require('rimraf'))
+ const rimraf = require('rimraf')
process.on('exit', () => rimraf.sync(prefix))
- return rimraf(bins).then(() => {
+ return promisify(rimraf)(bins).then(() => {
return installPackages(specs, prefix, opts)
😊 yeah I'll just roll a patch for this. It was p obvs when I saw it.
I have installed the npx globally, then want to try some features, but got the error: 'TypeError: rimraf.sync is not a function'.