When I initialized my project and tried to run npm run start-dev, I encountered the following error:
Error: Cannot find module ‘C:\Users\91628\neutrinos-studio\library\server\node_modules\simple-swizzle\index.js’.
Please verify that the package.json has a valid “main” entry
at tryPackage (node:internal/modules/cjs/loader:487:19)
at Module._findPath (node:internal/modules/cjs/loader:771:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
…
Node.js v20.18.3
[nodemon] app crashed - waiting for file changes before starting…
Steps I already tried:
Deleted node_modules and reinstalled using npm install.
Checked package.json for any missing dependencies.
Tried installing simple-swizzle manually using npm install simple-swizzle.
Re-ran the project with npm run start-dev.
But the issue still persists.
Could you please guide me on how to properly resolve this missing module error?
Is there any specific setup step required while initializing Neutrinos projects that I might have missed?
Hello @ajayps ,
If the issue still exists, could you please share the repository link containing the project folder with me privately, so that we can debug the issue from our side?
Hello @ajayps ,
I tried to reproduce the issue, but it could not be observed on my end. Could you please uninstall and reinstall Neutrinos Studio, and then check again to see if the problem persists?
I reinstalled the Studio application and started a new project, but that project also faced the same issue. I then followed all the steps you mentioned above, but the issue is still not resolved. The command execution screenshot and error details are attached in the screenshot for reference.
Hello @ajayps ,
It seems the command is not working in PowerShell. Could you try running it in Git Bash and go through the commands to check if it works?
@ajayps studio is using command shell in windows . use this command rmdir /s /q node_modules
del /f /q package-lock.json
instead of “rm -rf node_modules package-lock.json”
I tried these steps in different shells — the default Studio terminal, Windows PowerShell, and Git Bash — but there was no change in the issue. Even a new project is not working because of this problem.
Hello @ajayps ,
In the affected project, please try running these commands once more and check if the issue persists. Also, create a new project and let us know whether the issue occurs there as well
I tried the following steps in the current project and also created a new project, initialized it, and checked the live view. The same issue persists. I also applied the above command, but it didn’t work. The issue is still not resolved. The command execution and project run error screenshots are attached below.