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

Error: Cannot find module './artifacts/index.win32-ia32-msvc.node' #122

Open
noisytoken opened this issue Oct 21, 2023 · 1 comment
Open

Comments

@noisytoken
Copy link

🐛 bug report

I am trying to run a simple typescript project using parcel on Windows. here is my package.json file.

{
  "name": "maps",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "parcel src/index.html",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "parcel": "^2.10.0"
  }
}

I've already installed VC_redist.x64.

But sill when I run npm start. I get the following error:

> [email protected] start
> parcel src/index.html

Error: Cannot find module './artifacts/index.win32-ia32-msvc.node'
Require stack:
- C:\Users\x\working\maps\node_modules\@parcel\source-map\parcel_sourcemap_node\index.js
- C:\Users\x\working\maps\node_modules\@parcel\source-map\dist\node.js
- C:\Users\x\working\maps\node_modules\@parcel\utils\lib\index.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Config.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\utils.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Environment.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\public\Asset.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\Parcel.js
- C:\Users\x\working\maps\node_modules\@parcel\core\lib\index.js
- C:\Users\x\working\maps\node_modules\parcel\lib\cli.js
- C:\Users\x\working\maps\node_modules\parcel\lib\bin.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\x\working\maps\node_modules\@parcel\source-map\parcel_sourcemap_node\index.js:15:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\source-map\\parcel_sourcemap_node\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\source-map\\dist\\node.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\utils\\lib\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Config.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\utils.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Environment.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\public\\Asset.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\Parcel.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\@parcel\\core\\lib\\index.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\parcel\\lib\\cli.js',
    'C:\\Users\\x\\working\\maps\\node_modules\\parcel\\lib\\bin.js'
  ]
}
@mischnic mischnic transferred this issue from parcel-bundler/parcel Oct 24, 2023
@woodbellhere
Copy link

the default recommended version of node on its official website is 32-bit version (when we click the green download button on its homepage, so you just need to download a 64-bit version node (notice that "Other Downloads" under the button?)

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

2 participants