<< return
If you have add something packages to Package.Json and npm i has no effect after manually creating your package.json and deleting node_modules, here are some troubleshooting steps:
- 1. Verify package.json validity: Ensure your package.json is valid JSON. Even a small typo can prevent npm from working correctly. Use a JSON validator or a code editor with JSON validation to check for errors. The provided package.json seems valid, but double-check.
- 2. Check npm cache (again): It's worth clearing the npm cache again, just in case:
# npm cache clean --force
# npm install
This will regenerate the package-lock.json based on your package.json.
- ◦ Linux/macOS: sudo npm install (again, avoid sudo with npm if possible)
- ◦ Windows: Open your terminal/command prompt as an administrator.>
It's best to fix the underlying file ownership/permission issues or to work in directories where you have sufficient permissions as your regular user.
Electron context:
AngularElectron context:
Front context:
Comments (
)
Link to this page:
http://www.vb-net.com/AngularElectron/Trouble1.htm
|