nestjs / nest-cli

CLI tool for Nest applications 🍹
https://nestjs.com
Other
1.97k stars 394 forks source link

Cannot install @nestjs/cli #2181

Closed Limpidius-Fred closed 1 year ago

Limpidius-Fred commented 1 year ago

Is there an existing issue for this?

Current behavior

Cannot install @nestjs/cli (tested on node 18.16.1 / ubuntu 22.04.2)

Minimum reproduction code

https://github.com/nestjs/nest-cli

Steps to reproduce

nvm use 18.16.1 npm install -g @nestjs/cli

Expected behavior

Should install

Package version

10.1.9

NestJS version

No response

Node.js version

18.16.1

In which operating systems have you tested?

Other

command line result:

npm ERR! code Unknown system error -117
npm ERR! syscall stat
npm ERR! path /home/frederic/.npm/_cacache/content-v2/sha512/43/86/6e0407b6154b0ab72409a101e5bcff0ebc1111c4ede3126cb523b85c457709046187161fda241b306d7b92f6c82b0c7d9050ef22964c0d3c7bc731df1c96
npm ERR! errno -117
npm ERR! Unknown system error -117: Unknown system error -117, stat '/home/frederic/.npm/_cacache/content-v2/sha512/43/86/6e0407b6154b0ab72409a101e5bcff0ebc1111c4ede3126cb523b85c457709046187161fda241b306d7b92f6c82b0c7d9050ef22964c0d3c7bc731df1c96'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/frederic/.npm/_logs/2023-07-17T09_03_11_399Z-debug-0.log

log result:

...
1395 timing reifyNode:node_modules/@nestjs/cli/node_modules/schema-utils/node_modules/ajv Completed in 2778ms
1396 http fetch GET 200 https://npm.demo.limpidius.dev/rimraf/-/rimraf-4.4.1.tgz 1321ms (cache miss)
1397 timing reifyNode:node_modules/@nestjs/cli/node_modules/rimraf Completed in 2808ms
1398 timing reifyNode:node_modules/@nestjs/cli/node_modules/resolve Completed in 2821ms
1399 http fetch GET 200 https://npm.demo.limpidius.dev/terser/-/terser-5.19.0.tgz 2614ms (cache miss)
1400 timing reifyNode:node_modules/@nestjs/cli/node_modules/terser Completed in 2826ms
1401 timing reifyNode:node_modules/@nestjs/cli/node_modules/fork-ts-checker-webpack-plugin Completed in 2832ms
1402 http fetch GET 200 https://npm.demo.limpidius.dev/@angular-devkit%2fschematics/-/schematics-16.1.0.tgz 1274ms (cache miss)
1403 timing reifyNode:node_modules/@nestjs/cli/node_modules/@nestjs/schematics/node_modules/@angular-devkit/schematics Completed in 2855ms
1404 http fetch GET 200 https://npm.demo.limpidius.dev/@nestjs%2fcli/-/cli-10.1.9.tgz 2789ms (cache miss)
1405 timing reifyNode:node_modules/@nestjs/cli Completed in 2880ms
1406 http fetch GET 200 https://npm.demo.limpidius.dev/@angular-devkit%2fcore/-/core-16.1.0.tgz 1283ms (cache miss)
1407 timing reifyNode:node_modules/@nestjs/cli/node_modules/@nestjs/schematics/node_modules/@angular-devkit/core Completed in 2882ms
1408 http fetch GET 200 https://npm.demo.limpidius.dev/tsconfig-paths-webpack-plugin/-/tsconfig-paths-webpack-plugin-4.1.0.tgz 1576ms (cache miss)
1409 timing reifyNode:node_modules/@nestjs/cli/node_modules/tsconfig-paths-webpack-plugin Completed in 3021ms
1410 timing reifyNode:node_modules/@nestjs/cli/node_modules/ajv Completed in 3085ms
1411 http fetch GET 200 https://npm.demo.limpidius.dev/@angular-devkit%2fschematics-cli/-/schematics-cli-16.1.4.tgz 1513ms (cache miss)
1412 timing reifyNode:node_modules/@nestjs/cli/node_modules/@angular-devkit/schematics-cli Completed in 3094ms
1413 http fetch GET 200 https://npm.demo.limpidius.dev/@nestjs%2fschematics/-/schematics-10.0.1.tgz 1496ms (cache miss)
1414 timing reifyNode:node_modules/@nestjs/cli/node_modules/@nestjs/schematics Completed in 3118ms
1415 http fetch GET 200 https://npm.demo.limpidius.dev/@angular-devkit%2fcore/-/core-16.1.4.tgz 1586ms (cache miss)
1416 timing reifyNode:node_modules/@nestjs/cli/node_modules/@angular-devkit/core Completed in 3168ms
1417 http fetch GET 200 https://npm.demo.limpidius.dev/@types%2fnode/-/node-20.4.2.tgz 2979ms (cache miss)
1418 timing reifyNode:node_modules/@nestjs/cli/node_modules/@types/node Completed in 3186ms
1419 http fetch GET 200 https://npm.demo.limpidius.dev/caniuse-lite/-/caniuse-lite-1.0.30001516.tgz 2950ms (cache miss)
1420 timing reifyNode:node_modules/@nestjs/cli/node_modules/caniuse-lite Completed in 3239ms
1421 timing reifyNode:node_modules/@nestjs/cli/node_modules/lodash Completed in 3246ms
1422 http fetch GET 200 https://npm.demo.limpidius.dev/webpack/-/webpack-5.88.1.tgz 1975ms (cache miss)
1423 timing reifyNode:node_modules/@nestjs/cli/node_modules/webpack Completed in 3487ms
1424 http fetch GET 200 https://npm.demo.limpidius.dev/typescript/-/typescript-5.1.6.tgz 2878ms (cache miss)
1425 timing reifyNode:node_modules/@nestjs/cli/node_modules/typescript Completed in 4441ms
1426 timing reify:rollback:createSparse Completed in 107ms
1427 timing reify:rollback:retireShallow Completed in 0ms
1428 timing command:install Completed in 32231ms
1429 verbose stack Error: Unknown system error -117: Unknown system error -117, stat '/home/frederic/.npm/_cacache/content-v2/sha512/43/86/6e0407b6154b0ab72409a101e5bcff0ebc1111c4ede3126cb523b85c457709046187161fda241b306d7b92f6c82b0c7d9050ef22964c0d3c7bc731df1c96'
1430 verbose cwd /app
1431 verbose Linux 5.19.0-45-generic
1432 verbose node v18.16.1
1433 verbose npm  v9.5.1
1434 error code Unknown system error -117
1435 error syscall stat
1436 error path /home/frederic/.npm/_cacache/content-v2/sha512/43/86/6e0407b6154b0ab72409a101e5bcff0ebc1111c4ede3126cb523b85c457709046187161fda241b306d7b92f6c82b0c7d9050ef22964c0d3c7bc731df1c96
1437 error errno -117
1438 error Unknown system error -117: Unknown system error -117, stat '/home/frederic/.npm/_cacache/content-v2/sha512/43/86/6e0407b6154b0ab72409a101e5bcff0ebc1111c4ede3126cb523b85c457709046187161fda241b306d7b92f6c82b0c7d9050ef22964c0d3c7bc731df1c96'
1439 verbose exit -117
1440 timing npm Completed in 32260ms
1441 verbose unfinished npm timer reify 1689584591431
1442 verbose unfinished npm timer reify:unpack 1689584619096
1443 verbose unfinished npm timer reifyNode:node_modules/@nestjs/cli/node_modules/is-core-module 1689584619102
1444 verbose unfinished npm timer reifyNode:node_modules/@nestjs/cli/node_modules/memfs 1689584619105
1445 verbose unfinished npm timer reifyNode:node_modules/@nestjs/cli/node_modules/rxjs 1689584619106
1446 verbose unfinished npm timer reifyNode:node_modules/@nestjs/cli/node_modules/@angular-devkit/schematics 1689584619107
1447 verbose code -117
1448 error A complete log of this run can be found in:
1448 error     /home/frederic/.npm/_logs/2023-07-17T09_03_11_399Z-debug-0.log
micalevisk commented 1 year ago

that doesn't seems to be related with @nestjs/cli in particular. See: https://www.google.com/search?q=%22npm+ERR%21+code+Unknown+system+error+-117%22

image

it works fine here on Ubuntu.

What about npx @nestjs/cli new?

Limpidius-Fred commented 1 year ago

Right fsck resolved it. Sorry