I'm using the rc-slider component in my application and had to add one feature to meet my needs.
I forked the main repository and pushed my changes to this branch.
In the application, I changed the package.json
as below and ran the npm install again:
"rc-slider": "Rodrigora/slider#add-label"
Nothing changed. Seems that npm doesn't update the dependencies.
So, I removed the node_modules
and rails cache folder and ran the install command again:
rm -rf node_modules/
rake tmp:cache:clear
npm install
Now, I have this error:
events.js:142
throw er; // Unhandled 'error' event
^
Error: Cannot find module 'rc-slider' from '/Users/rodrigora/project/app/assets/javascripts'
NPM can't find the rc-slider
when I using the modified branch.
- NPM does not update the dependencies only changing the
package.json
file? - Should I run some build command to install my branch code?