Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError thrown from clone.js #226

Closed
DimuthRuwantha opened this issue Feb 27, 2022 · 1 comment
Closed

ReferenceError thrown from clone.js #226

DimuthRuwantha opened this issue Feb 27, 2022 · 1 comment

Comments

@DimuthRuwantha
Copy link

I was working on different react projects and suddenly npm commands stopped working due to the following error

 i& (obj === null || typeof obj !== 'object')
  ^

ReferenceError: i is not defined
    at clone (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\clone.js:10:3)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:96:24)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:7:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\clone.js:10
  i& (obj === null || typeof obj !== 'object')
  ^

ReferenceError: i is not defined
    at clone (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\clone.js:10:3)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:96:24)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:7:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)

I wonder this is due to node, npm or graceful-fs since I didn't update or any changes to node or npm installed in my PC
node version: v16.13.0
OS: Windows 10

@DimuthRuwantha
Copy link
Author

Repair node using node installer fixed the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant