Closed maaaaarco closed 3 years ago
I solved this by going into this direcotry, mentioned in the log:
root: /Users/YOUR_USER_NAME/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server
I then deleted the node_modules
folder and run a
npm install --save-dev
Hello @maaaaarco, I'm having exactly same issue (see below) and did exactly as you described above but still getting the error. Do you have any other suggestions?
(node:42520) [MODULE_NOT_FOUND] Error Plugin: @salesforce/lwc-dev-server: Cannot find module '/Users/softectonic/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server/dist/cli/commands/force/lightning/lwc/start.d'
Require stack:
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/plugin.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/config.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/index.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/command.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/index.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/dist/cli.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/bin/run
module: @oclif/config@1.17.0
task: toCached
plugin: @salesforce/lwc-dev-server
root: /Users/softectonic/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server
See more details with DEBUG=*
Also getting this error.
(node:12772) [MODULE_NOT_FOUND] Error Plugin: @salesforce/lwc-dev-server: Cannot find module '/Users/cshaughnessy/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server/dist/cli/commands/force/lightning/lwc/start.d' Require stack: -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/node_modules/@oclif/config/lib/plugin.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/node_modules/@oclif/config/lib/config.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/node_modules/@oclif/config/lib/index.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/node_modules/@oclif/command/lib/command.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/node_modules/@oclif/command/lib/index.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/dist/cli.js -- /Users/cshaughnessy/.local/share/sfdx/client/7.94.3-a4e7c7955b/bin/sfdx.js module: @oclif/config@1.17.0 task: toCached plugin: @salesforce/lwc-dev-server root: /Users/cshaughnessy/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server See more details with DEBUG=*
Describe the bug After installing the dev server everytime I run a CLI command I get this:
The dev server is working fine and also other commands.
Desktop (please complete the following information):
Additional context