Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Failure to install npm package autorest

    Scheduled Pinned Locked Moved Support
    proget
    2 Posts 2 Posters 45 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I'm unable to install the autorest npm package using a proget npm feed with a connecter setup to https://registry.npmjs.org/

      There is no issues using https://registry.npmjs.org/ directly.

      Are you able to verify this issue?

      I'm able to provide the npm debug log file if necessary, here's a select portion:

      1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
      1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
      1 verbose cli   'install',
      1 verbose cli   '-g',
      1 verbose cli   'autorest' ]
      2 info using npm@4.2.0
      3 info using node@v7.9.0
      ...
      1216 info attempt registry request try #2 at 10:14:44
      1217 http request GET http://ms-ch12/npm/ClientPackages/commonmark
      1218 http 500 http://ms-ch12/npm/ClientPackages/commonmark
      1219 verbose headers { 'cache-control': 'private',
      1219 verbose headers   'content-length': '157',
      1219 verbose headers   'content-type': 'application/json; charset=utf-8',
      1219 verbose headers   server: 'Microsoft-HTTPAPI/2.0',
      1219 verbose headers   'x-aspnet-version': '4.0.30319',
      1219 verbose headers   date: 'Tue, 25 Apr 2017 08:14:44 GMT' }
      1220 info retry will retry, error on last attempt: Error: ArgumentException Can not add property versions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.: npm
      1221 info attempt registry request try #3 at 10:15:44
      1222 http request GET http://ms-ch12/npm/ClientPackages/commonmark
      1223 http 500 http://ms-ch12/npm/ClientPackages/commonmark
      1224 verbose headers { 'cache-control': 'private',
      1224 verbose headers   'content-length': '157',
      1224 verbose headers   'content-type': 'application/json; charset=utf-8',
      1224 verbose headers   server: 'Microsoft-HTTPAPI/2.0',
      1224 verbose headers   'x-aspnet-version': '4.0.30319',
      1224 verbose headers   date: 'Tue, 25 Apr 2017 08:15:44 GMT' }
      1225 silly get cb [ 500,
      1225 silly get   { 'cache-control': 'private',
      1225 silly get     'content-length': '157',
      1225 silly get     'content-type': 'application/json; charset=utf-8',
      1225 silly get     server: 'Microsoft-HTTPAPI/2.0',
      1225 silly get     'x-aspnet-version': '4.0.30319',
      1225 silly get     date: 'Tue, 25 Apr 2017 08:15:44 GMT' } ]
      1226 silly fetchPackageMetaData Error: ArgumentException Can not add property versions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.: npm
      1226 silly fetchPackageMetaData     at makeError (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:12)
      1226 silly fetchPackageMetaData     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:292:14)
      1226 silly fetchPackageMetaData     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:212:14)
      1226 silly fetchPackageMetaData     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:186:22)
      1226 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
      1226 silly fetchPackageMetaData     at Request.emit (events.js:194:7)
      1226 silly fetchPackageMetaData     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1081:10)
      1226 silly fetchPackageMetaData     at emitOne (events.js:96:13)
      1226 silly fetchPackageMetaData     at Request.emit (events.js:191:7)
      1226 silly fetchPackageMetaData     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1001:12)
      1226 silly fetchPackageMetaData  error for commonmark@^0.27.0 { Error: ArgumentException Can not add property versions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.: npm
      1226 silly fetchPackageMetaData     at makeError (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:12)
      1226 silly fetchPackageMetaData     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:292:14)
      1226 silly fetchPackageMetaData     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:212:14)
      1226 silly fetchPackageMetaData     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:186:22)
      1226 silly fetchPackageMetaData     at emitTwo (events.js:106:13)
      1226 silly fetchPackageMetaData     at Request.emit (events.js:194:7)
      1226 silly fetchPackageMetaData     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1081:10)
      1226 silly fetchPackageMetaData     at emitOne (events.js:96:13)
      1226 silly fetchPackageMetaData     at Request.emit (events.js:191:7)
      1226 silly fetchPackageMetaData     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1001:12) pkgid: 'npm', statusCode: 500, code: 'E500' }
      1227 silly rollbackFailedOptional Starting
      1228 silly rollbackFailedOptional Finishing
      1229 silly runTopLevelLifecycles Finishing
      1230 silly install printInstalled
      1231 verbose stack Error: ArgumentException Can not add property versions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.: npm
      1231 verbose stack     at makeError (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:304:12)
      1231 verbose stack     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:292:14)
      1231 verbose stack     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:212:14)
      1231 verbose stack     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:186:22)
      1231 verbose stack     at emitTwo (events.js:106:13)
      1231 verbose stack     at Request.emit (events.js:194:7)
      1231 verbose stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1081:10)
      1231 verbose stack     at emitOne (events.js:96:13)
      1231 verbose stack     at Request.emit (events.js:191:7)
      1231 verbose stack     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1001:12)
      1232 verbose statusCode 500
      1233 verbose pkgid npm
      1234 verbose cwd C:\Users\gottscj
      1235 error Windows_NT 10.0.10586
      1236 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "autorest"
      1237 error node v7.9.0
      1238 error npm  v4.2.0
      1239 error code E500
      1240 error ArgumentException Can not add property versions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.: npm
      1241 error If you need help, you may report this error at:
      1241 error     <https://github.com/npm/npm/issues>
      1242 verbose exit [ 1, true ]
      

      Product: ProGet
      Version: 4.7.11

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        Hello Peter,

        Thanks for the bug report! I was able to reproduce the problem, and it will be fixed in the next minor version of ProGet (4.7.12).

        PG-1029

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation