Skip to content

npm syscall lchown can not found lock file: /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock #79

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

Closed
Garfield550 opened this issue Oct 25, 2019 · 4 comments

Comments

@Garfield550
Copy link

CI failed when running command lerna bootstrap -- --ignore-engines

Shot log:

2019-10-25T09:35:05.2608624Z lerna ERR! npm ERR! code ENOENT
2019-10-25T09:35:05.2608800Z lerna ERR! npm ERR! syscall lchown
2019-10-25T09:35:05.2609375Z lerna ERR! npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:35:05.2609713Z lerna ERR! npm ERR! errno -2
2019-10-25T09:35:05.2610421Z lerna ERR! npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:35:05.2615806Z lerna ERR! npm ERR! enoent This is related to npm not being able to find a file.

Action workflow config:

name: Node CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [8.x, 10.x, 12.x]
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install, build, and test
      run: |
        npm install
        npm run bootstrap
        npm run build
        npm test
      env:
        CI: true
2019-10-25T09:34:14.9052736Z > lerna bootstrap -- --ignore-engines
2019-10-25T09:34:14.9052843Z 
2019-10-25T09:34:15.1980909Z lerna info version 2.11.0
2019-10-25T09:34:15.2245709Z lerna WARN ECYCLE Encountered a cycle in the dependency graph.This may cause instability! Packages in cycle are: "@tarojs/components", "@tarojs/taro-h5", "@tarojs/redux-h5", "@tarojs/router", "@tarojs/webpack-runner", "babel-plugin-transform-taroapi", "@tarojs/mobx-h5"
2019-10-25T09:34:15.2256819Z lerna info Bootstrapping 47 packages
2019-10-25T09:34:15.2264574Z lerna info lifecycle preinstall
2019-10-25T09:34:15.3551139Z lerna info Installing external dependencies
2019-10-25T09:35:05.2545817Z lerna ERR! execute callback with error
2019-10-25T09:35:05.2557470Z lerna ERR! Error: Command failed: npm install --ignore-engines
2019-10-25T09:35:05.2572634Z lerna ERR! npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
2019-10-25T09:35:05.2573788Z lerna ERR! npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
2019-10-25T09:35:05.2604402Z lerna ERR! npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
2019-10-25T09:35:05.2605673Z lerna ERR! npm WARN eslint-plugin-react-native@3.7.0 requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
2019-10-25T09:35:05.2606374Z lerna ERR! npm WARN taro-rn No description
2019-10-25T09:35:05.2607319Z lerna ERR! npm WARN taro-rn No repository field.
2019-10-25T09:35:05.2608032Z lerna ERR! npm WARN taro-rn No license field.
2019-10-25T09:35:05.2608300Z lerna ERR! 
2019-10-25T09:35:05.2608624Z lerna ERR! npm ERR! code ENOENT
2019-10-25T09:35:05.2608800Z lerna ERR! npm ERR! syscall lchown
2019-10-25T09:35:05.2609375Z lerna ERR! npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:35:05.2609713Z lerna ERR! npm ERR! errno -2
2019-10-25T09:35:05.2610421Z lerna ERR! npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:35:05.2615806Z lerna ERR! npm ERR! enoent This is related to npm not being able to find a file.
2019-10-25T09:35:05.2616183Z lerna ERR! npm ERR! enoent 
2019-10-25T09:35:05.2616821Z lerna ERR! 
2019-10-25T09:35:05.2617305Z lerna ERR! npm ERR! A complete log of this run can be found in:
2019-10-25T09:35:05.2617965Z lerna ERR! npm ERR!     /home/runner/.npm/_logs/2019-10-25T09_35_05_188Z-debug.log
2019-10-25T09:35:05.2618267Z lerna ERR! 
2019-10-25T09:35:05.2618824Z lerna ERR!     at /home/runner/work/taro/taro/node_modules/lerna/node_modules/execa/index.js:236:11
2019-10-25T09:35:05.3052939Z lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
2019-10-25T09:36:06.9408206Z Error: Command failed: npm install --ignore-engines
2019-10-25T09:36:06.9409704Z npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
2019-10-25T09:36:06.9411648Z npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
2019-10-25T09:36:06.9412768Z npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
2019-10-25T09:36:06.9413565Z npm WARN eslint-plugin-react-native@3.7.0 requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
2019-10-25T09:36:06.9414483Z npm WARN taro-rn No description
2019-10-25T09:36:06.9414896Z npm WARN taro-rn No repository field.
2019-10-25T09:36:06.9415285Z npm WARN taro-rn No license field.
2019-10-25T09:36:06.9415358Z 
2019-10-25T09:36:06.9415540Z npm ERR! code ENOENT
2019-10-25T09:36:06.9415724Z npm ERR! syscall lchown
2019-10-25T09:36:06.9416213Z npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:36:06.9416568Z npm ERR! errno -2
2019-10-25T09:36:06.9417156Z npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:36:06.9417799Z npm ERR! enoent This is related to npm not being able to find a file.
2019-10-25T09:36:06.9418124Z npm ERR! enoent
@jperl
Copy link

jperl commented Feb 17, 2020

This might be a bug with npm that should be fixed in their next release. npm/cli#496

@abhiomkar
Copy link

Seems like this bug is fixed in npm v6.14.1, is there a way to bump npm version in setup-node action without using latest node?

@Nek-
Copy link

Nek- commented May 12, 2020

I had this issue and updating npm fixed the problem also to me.

@dmitry-shibanov
Copy link
Contributor

Hello everyone. I'm closing the issue, because it's related to npm.

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

5 participants