Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Can I fix the “error: enoent: no such file or directory, uv_cwd” or not?
Next
Answered
Amara Martin
  • 15
Amara Martin
Asked: May 18, 20222022-05-18T19:06:44+00:00 2022-05-18T19:06:44+00:00In: javascript

Can I fix the “error: enoent: no such file or directory, uv_cwd” or not?

  • 15

. Advertisement .

..3..

. Advertisement .

..4..

I am tired of fixing the problem: error: enoent: no such file or directory, uv_cwd in the javascript; even if I get the reference from another forum, it still returns an error:

path.js:1086
  cwd = process.cwd();
  ^
 
 Error: ENOENT: no such file or directory, uv_cwd
  at Object.resolve (path.js:1086:25)
  at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:479:17)
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:20)

To identify the problem, I will show you the detail here:

{
  "name": "test_webpack",
  "version": "1.0.0",
  "description": "",
  "private": true,
  "scripts": {
  "test": "echo "Error: no test specified" && exit 1",
  "build": "webpack"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
  "clean-webpack-plugin": "^1.0.0",
  "css-loader": "^1.0.1",
  "csv-loader": "^3.0.2",
  "file-loader": "^2.0.0",
  "html-webpack-plugin": "^3.2.0",
  "style-loader": "^0.23.1",
  "webpack": "^4.25.1",
  "webpack-cli": "^3.1.2",
  "xml-loader": "^1.2.1"
  },
  "dependencies": {
  "lodash": "^4.17.11"
  }
 }
const path = require('path');
 const HtmlWebpackPlugin = require('html-webpack-plugin')
 const CleanWebpackPlugin = require('clean-webpack-plugin')
 
 module.exports = {
  mode: 'development',
  entry: {
  app: './src/index.js',
  print: './src/print.js',
  sec: './src/secondClick.js'
  },
  devtool: 'inline-source-map',
  plugins: [
  new CleanWebpackPlugin(['dist']),
  new HtmlWebpackPlugin({
  titile: "Output manager from webpack n12"
  })
  ],
  output: {
  filename: '[name].bundle.js',
  path: path.resolve(__dirname, 'dist')
  }
 };

How do I do that? Could you support me in improving this problem?

npm
  • 2 2 Answers
  • 432 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    dttutoria Expert
    2022-06-22T10:14:02+00:00Added an answer on June 22, 2022 at 10:14 am

    The cause: You may be executing a git clone on the same directory in another terminal window, which is why the problem displays.

    Solution: To solve the “error: enoent: no such file or directory, uv_cwd”, you can shut and reopen the terminal’s windows.

    If it does not work, modify your webpack.config:

    entry: {
    app: path.resolve(__dirname, 'src/index.js'),
    print: path.resolve(__dirname, 'src/print.js'),
    sec: path.resolve(__dirname, 'src/secondClick.js')
    },

    Additionally, make ensure you execute the program from the project root using:

    npx webpack --config webpack.config.js

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Léna Ruiz
    2022-05-26T03:55:30+00:00Added an answer on May 26, 2022 at 3:55 am

    It worked for me to close all terminal windows and open them again.


    Reference

    • 7
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.