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

npm start failing from "Module Not Found" error #1821

Open
digracesion opened this issue May 12, 2023 · 3 comments
Open

npm start failing from "Module Not Found" error #1821

digracesion opened this issue May 12, 2023 · 3 comments

Comments

@digracesion
Copy link

I checked that the dependencies node-gyp, gulp-cli, webpack, webpack-cli and mermaid were installed. I also ran npm audit fix --force to make sure the package-lock is updated after running npm install.

However, I'm still encountering the following error message when running npm start:

PS C:\Users\windows\coderepos\markdown\stackedit\stackedit> npm start

> stackedit@5.14.10 start
> node build/dev-server.js

node:internal/modules/cjs/loader:1042
  throw err;
  ^

Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:
- C:\Users\windows\coderepos\markdown\stackedit\stackedit\node_modules\vue-loader\lib\plugin.js
- C:\Users\windows\coderepos\markdown\stackedit\stackedit\build\webpack.base.conf.js
- C:\Users\windows\coderepos\markdown\stackedit\stackedit\build\webpack.dev.conf.js
- C:\Users\windows\coderepos\markdown\stackedit\stackedit\build\dev-server.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1039:15)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (C:\Users\windows\coderepos\markdown\stackedit\stackedit\node_modules\vue-loader\lib\plugin.js:2:17)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\windows\\coderepos\\markdown\\stackedit\\stackedit\\node_modules\\vue-loader\\lib\\plugin.js',
    'C:\\Users\\windows\\coderepos\\markdown\\stackedit\\stackedit\\build\\webpack.base.conf.js',
    'C:\\Users\\windows\\coderepos\\markdown\\stackedit\\stackedit\\build\\webpack.dev.conf.js',
    'C:\\Users\\windows\\coderepos\\markdown\\stackedit\\stackedit\\build\\dev-server.js'
  ]
}

Node.js v18.13.0
@knackstedt
Copy link

When I forked the repo, I encountered various build issues.

You can try downgrading to NodeJS 12, but it's a bit of a coin toss whether or not you'll be able to build the project on master.

@jansalleine
Copy link

Ran into the same issue.
Solved it by installing node v12.22.12 via nvm ( nvm install 12 ) and not using npm audit fix.
Even on node v12 npm audit fix breaks something.

@remarkablejames
Copy link

i have a problem cloning this repo. when i do npm install it fails saying many packages are not supported. any help ?

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

4 participants