node.js - Update local file dependency with npm -


i have project local file dependency in package.json this:

"dependencies": {     "dep_1": "file:../../dep_1"   } } 

when npm install installed node_modules. if make changes dep_1 how update module version in node_modules?

i tried doing npm update nothing happens.

if using relatively new version of npm (i used version 2.14.2) can bump version number in package.json , npm update dep_1 should work. otherwise how can npm know needs updated?

note: work if version higher has been installed. have clean cache reset behaviour.

however, can forceably (and lazily) update local modules running npm install again. e.g.

npm install dep_1 

it should fast since on local computer , don't have play around version numbers.

for more detail see discussion issue on official npm repository page: https://github.com/npm/npm/issues/7426


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -