Closed justintim-es closed 10 months ago
Here you can see what is missing in other words index.js line 41
const cache = new Map()
const fs = require('fs')
const { dirname, resolve } = require('path')
const lstat = path => new Promise((res, rej) =>
fs.lstat(path, (er, st) => er ? rej(er) : res(st)))
const inferOwner = path => {
path = resolve(path)
if (cache.has(path))
return Promise.resolve(cache.get(path))
const statThen = st => {
const { uid, gid } = st
cache.set(path, { uid, gid })
return { uid, gid }
}
const parent = dirname(path)
const parentTrap = parent === path ? null : er => {
return inferOwner(parent).then((owner) => {
cache.set(path, owner)
return owner
})
}
return lstat(path).then(statThen, parentTrap)
}
const inferOwnerSync = path => {
path = resolve(path)
if (cache.has(path))
return cache.get(path)
const parent = dirname(path)
// avoid obscuring call site by re-throwing
// "catch" the error by returning from a finally,
// only if we're not at the root, and the parent call works.
let threw = true
try {
const st = fs.lstatSync
That isn't our code, and no we can't troubleshoot it for you
Dear NodeSass, I am used to using you for customization of the bulma css framework but now i have this error
Didn't had proper internet to check out v7.0 but could you solve this for us?