I am having this error in windows 10 with npm run command :
node:internal/modules/cjs/loader:1063
throw err;
^
Error: Cannot find module 'D:\mobile-version portfolio\
at Module._resolveFilename (node:internal/modules/cjs/loader:1060:15)
at node:internal/main/check_syntax:34:20 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v19.6.0 someone help me please.
I have uninstalled and installed node.js, but didn't work for me, I also deleted node-modules and installed again but all is not working.
When I try to run any npm command i.e npm run start, npm run build or check linter errors with npx stylelint **/*.{css,scss} it throws the same error.am working with webpack and I need to run the command to update my changes in dist file from src file.
I also need to run and check linter errors and fix in my project. Here is my package.json file:
"name": "to-do-list",
"version": "1.0.0",
"description": "README.md\r One attachment\r • Scanned by Gmail\r <a name=\"readme-top\"></a>",
"main": "index.js",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack serve --open",
"build": "webpack --config webpack.config.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Tracy-miranja/TO-DO-LIST.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Tracy-miranja/TO-DO-LIST/issues"
},
"homepage": "https://github.com/Tracy-miranja/TO-DO-LIST#readme",
"devDependencies": {
"@babel/core": "^7.17.8",
"@babel/preset-env": "^7.16.11",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.3",
"css-loader": "^6.7.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.27.5",
"hint": "^2.0.0",
"html-webpack-plugin": "^5.5.0",
"sass": "^1.49.9",
"sass-loader": "^12.6.0",
"style-loader": "^3.3.1",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^21.0.0",
"stylelint-csstree-validator": "^1.9.0",
"stylelint-scss": "^3.21.0",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"lodash": "^4.17.21"
}
}
You are just opening the terminal in the wrong folder.
The index file is inside the BestMe folder:
~/Desktop/Programação/Rocketseat/Discover/NodeJS/BestMe


If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With