npm install caching #149713
Unanswered
Wissam-al-hajj
asked this question in
Actions
npm install caching
#149713
Replies: 1 comment
-
Try running "npm cache clean". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Dears,
I was able to install node module without any problem within my git action workflow, but suddenly i got a caching error and node module were not installed . Below is the error :
npm verbose stack Error: Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\npm\cache_cacache\tmp\vmbnsC\package.json'
npm verbose stack at async open (node:internal/fs/promises:639:25)
npm verbose stack at async readFile (node:internal/fs/promises:1242:14)
npm verbose stack at async read (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\package-json\lib\read-package.js:9:18)
npm verbose stack at async PackageJson.load (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\package-json\lib\index.js:130:31)
npm verbose stack at async PackageJson.normalize (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\package-json\lib\index.js:116:5)
npm verbose stack at async withTempDir (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\fs\lib\with-temp-dir.js:21:14)
npm verbose stack at async #fetchManifest (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1199:20)
npm verbose stack at async #nodeFromEdge (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:1037:19)
npm verbose stack at async #buildDepStep (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:901:11)
npm verbose stack at async Arborist.buildIdealTree (C:\hostedtoolcache\windows\node\20.18.1\x64\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:181:7)
npm error code ENOENT
npm error syscall open
npm error path C:\npm\cache_cacache\tmp\vmbnsC\package.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\npm\cache_cacache\tmp\vmbnsC\package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm verbose cwd D:\a\test\test\iris5.libs
npm verbose os Windows_NT 10.0.20348
npm verbose node v20.18.1
npm verbose npm v10.8.2
npm verbose exit -4058
npm verbose code -4058
Any recommendations please ?
Beta Was this translation helpful? Give feedback.
All reactions