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

File Locking Issues #466

Closed
danderson00 opened this issue Jul 7, 2017 · 2 comments
Closed

File Locking Issues #466

danderson00 opened this issue Jul 7, 2017 · 2 comments

Comments

@danderson00
Copy link

danderson00 commented Jul 7, 2017

Actual Behavior

  1. Run app in VS Code
  2. Stop app
  3. Attempt to install new npm module
  4. Installation fails due to inability to delete staging file

A similar file locking issue is sometimes also present when attempting to clean the Android native project by running gradlew clean, though this is usually resolved by rerunning the operation.

Expected Behavior

No file locking errors!

Software versions

  • React-Native VS Code extension version: 0.3.2
  • VSCode version: 1.13.1
  • OS platform and version: Windows 10 Pro Version 1607 (OS Build 14393.1358)
  • NodeJS version: 6.9.2
  • React Native version: 0.45.1

Outputs (Include if relevant)

  • Output of the Debug Console (View -> Toggle Debug Console):
    N/A
  • Output of the React-Native output channel (View -> Toggle Output -> Select React-Native in ListBox):
    N/A
  • Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):
C:\Projects\picturemyhistory\mobile [mobile ≡ +1 ~10 -0 !]> npm install react-native-svg --save
npm WARN enoent ENOENT: no such file or directory, open 'C:\Projects\picturemyhistory\mobile\node_modules\stream\package.json'
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-native-svg" "--save"
npm ERR! node v6.9.2
npm ERR! npm  v4.0.5
npm ERR! path C:\Projects\picturemyhistory\mobile\node_modules\.staging\color-string-3ea664bd
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Projects\picturemyhistory\mobile\node_modules\.staging\color-string-3ea664bd' -> 'C:\Projects\picturemyhistory\mobile\node_modul
es\color-string'
npm ERR!     at destStatted (C:\Users\Dale\AppData\Roaming\nvm\v6.9.2\node_modules\npm\lib\install\action\finalize.js:29:7)
npm ERR!     at C:\Users\Dale\AppData\Roaming\nvm\v6.9.2\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Projects\picturemyhistory\mobile\node_modules\.staging\color-string-3ea664bd' -> 'C:\Projects\picturemyhistory\mobile\node_modul
es\color-string'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, rename 'C:\Projects\picturemyhistory\mobile\node_modules\.staging\color-string-3ea664bd' -> 'C:\Projects\picturemyhistory\mobile\node_mo
dules\color-string'
npm ERR!     at destStatted (C:\Users\Dale\AppData\Roaming\nvm\v6.9.2\node_modules\npm\lib\install\action\finalize.js:29:7)
npm ERR!     at C:\Users\Dale\AppData\Roaming\nvm\v6.9.2\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Projects\picturemyhistory\mobile\node_modules\.staging\color-string-3ea664bd' -> 'C:\Projects\picturemyhistory\mobile\node_modul
es\color-string'
npm ERR!     at Error (native) parent: 'picturemyhistory' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Projects\picturemyhistory\mobile\npm-debug.log
@vladimir-kotikov
Copy link
Contributor

@danderson00, thanks for reporting. However ths this doesn't sound like an issue with extension itself - looks like this is known issue with VSCode itself, see microsoft/vscode#29204 and microsoft/vscode#28593. Looks like the problem was fixed in 1.14 so upgrading VSCode should help

@vladimir-kotikov
Copy link
Contributor

vladimir-kotikov commented Aug 4, 2017

Closing this. @danderson00 if you're still having this problem and feel that this is a problem with extension - please reopen

@vladimir-kotikov vladimir-kotikov added this to the 0.4.1 milestone Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants