How can I update the protractor npm module in node.js?

Samantha J T Star

I am using Visual Studio 2013 Node.js Tools for Visual Studio.

I would like to update protractor to this:

https://www.npmjs.org/package/protractor

Under npm in Visual Studio I see it shows I have the [email protected] module. When I right click on this and select

update npm module

It goes to

https://registry.npmjs.org/protractor

When I enter that in my URL it shows on the the first line 1.0.0-rc2 as the latest version:

https://registry.npmjs.org/protractor

{"_id":"protractor","_rev":"103-dc957e08fce862ad70c481b4a2327ee6",
"name":"protractor","description":"Webdriver E2E test wrapper for Angular.",
"dist-tags":{"latest":"1.0.0-rc2"},
"versions":{"0.1.0":{"name":"protractor",
"description":"End to End test helpers for Angular.",
"homepage":"https://github.com/juliemr/protractor","keywords":

In the output window it shows the update:

====Executing command 'npm update protractor --save'====


npm http GET https://registry.npmjs.org/protractor
npm http 304 https://registry.npmjs.org/protractor
npm http GET https://registry.npmjs.org/selenium-webdriver
npm http GET https://registry.npmjs.org/jasminewd
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/saucelabs
npm http GET https://registry.npmjs.org/adm-zip
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/source-map-support
npm http 304 https://registry.npmjs.org/selenium-webdriver
npm http 304 https://registry.npmjs.org/jasminewd
npm http 304 https://registry.npmjs.org/saucelabs
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/adm-zip
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/source-map-support
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
[email protected] node_modules\protractor
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected]

====npm command completed with exit code 0====

What I would like to know is if the first line shows 1.0.0-rc2 as the latest version then why does it still show protractor 0.24.2 as the one that it downloaded after the update?

Roman Shtylman

The "npm update" command doesn't actually upgrade packages unconditionally. It simply upgrades packages to the maximum allowed semver as noted in the package.json file for your dependencies and their sub dependencies. To actually upgrade to a newer version you have two options:

  1. Use "npm install" and specify the version to install. You can use the "latest" tag to specify the latest version without having to look it up. Use the "--save" flag to have npm edit your package.json file and update to the new version.

    npm install protractor@latest --save

  2. Edit the package.json and find the line with "protractor": "0.24.2" and change the version to "1.0.0-rc2" (or whichever version you want). Then you can run "npm update" or "npm install" after you have changed and saved the file.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I automatically update a view using Node.js?

From Dev

How can I update Node.JS through JXCore?

From Dev

Node.js & npm: How can I create custom npm cli commands?

From Java

How can I update npm on Windows?

From Dev

How can I update npm package on github

From Dev

How to update npm and node

From Dev

How can I use browserify module for adapting xml2js node module for the browser?

From Dev

NPM not working with update on node js

From Dev

Can I make protractor use the IEDriverServer.exe webdriver-update installed in node_modules?

From Dev

Can I modify and publish npm modules (node.js)?

From Java

How do I update Node.js?

From Dev

How can I check if database update is required before update module

From Dev

How can I preserve local changes made to an NPM module?

From Dev

How can I install a Node.js module under $HOME/bin

From Dev

How can I use the Node.js 'async' module to do 'A' or 'B' and then always 'C' in one function?

From Dev

After Node / Npm Update, Sails.js unable to find module 'ini'

From Dev

Can't update node: npm does not support Node.js v5.3.0

From Dev

How can I update all npm packages/modules at once?

From Dev

How can I update node.js and install grunt/bower in a python project in Travis CI?

From Dev

How can I update 2 collections at the same time using Node.js/Mongoose/MongoDB

From Dev

Node can't import npm installed module

From Dev

Installing module of node.js using npm

From Java

How can I completely uninstall nodejs, npm and node in Ubuntu 14.04

From Dev

Protractor: how I can rightly use filtering in Protractor?

From Dev

Node.js/MongoDB: How can I use module.exports to pass a localhost database url to server.js file?

From Dev

Node.js+npm, should I use global or local module install?

From Dev

How can I install node.js?

From Dev

How can I make node js synchronize?

From Dev

How can I update an instance variable from within a called module

Related Related

  1. 1

    How can I automatically update a view using Node.js?

  2. 2

    How can I update Node.JS through JXCore?

  3. 3

    Node.js & npm: How can I create custom npm cli commands?

  4. 4

    How can I update npm on Windows?

  5. 5

    How can I update npm package on github

  6. 6

    How to update npm and node

  7. 7

    How can I use browserify module for adapting xml2js node module for the browser?

  8. 8

    NPM not working with update on node js

  9. 9

    Can I make protractor use the IEDriverServer.exe webdriver-update installed in node_modules?

  10. 10

    Can I modify and publish npm modules (node.js)?

  11. 11

    How do I update Node.js?

  12. 12

    How can I check if database update is required before update module

  13. 13

    How can I preserve local changes made to an NPM module?

  14. 14

    How can I install a Node.js module under $HOME/bin

  15. 15

    How can I use the Node.js 'async' module to do 'A' or 'B' and then always 'C' in one function?

  16. 16

    After Node / Npm Update, Sails.js unable to find module 'ini'

  17. 17

    Can't update node: npm does not support Node.js v5.3.0

  18. 18

    How can I update all npm packages/modules at once?

  19. 19

    How can I update node.js and install grunt/bower in a python project in Travis CI?

  20. 20

    How can I update 2 collections at the same time using Node.js/Mongoose/MongoDB

  21. 21

    Node can't import npm installed module

  22. 22

    Installing module of node.js using npm

  23. 23

    How can I completely uninstall nodejs, npm and node in Ubuntu 14.04

  24. 24

    Protractor: how I can rightly use filtering in Protractor?

  25. 25

    Node.js/MongoDB: How can I use module.exports to pass a localhost database url to server.js file?

  26. 26

    Node.js+npm, should I use global or local module install?

  27. 27

    How can I install node.js?

  28. 28

    How can I make node js synchronize?

  29. 29

    How can I update an instance variable from within a called module

HotTag

Archive