Skip to content

Adding d3 through typings will break the ng-init or npm install #464

Description

@psyCodelist

Hi All,

Thanks for looking into this. The issue happens on postinstall script:

Step to replicate:
add d3 library:

  • npm install d3 --save
  • typings uninstall d3 --save
    run npm install at this point:

console result:

typings ERR! message Unknown dependency: registry:npm/d3#3.0.0+20160211003958

NPM log file:
69 info lifecycle ui-poc@0.0.0~postinstall: Failed to exec postinstall script
70 verbose stack RangeError: Maximum call stack size exceeded
70 verbose stack at Array.filter (native)
70 verbose stack at /Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:55:37
70 verbose stack at Array.forEach (native)
70 verbose stack at markAsFailed (/Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:54:16)
70 verbose stack at /Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:57:7
70 verbose stack at Array.forEach (native)
70 verbose stack at markAsFailed (/Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:54:16)
70 verbose stack at /Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:57:7
70 verbose stack at Array.forEach (native)
70 verbose stack at markAsFailed (/Users/nbirgani/.nvm/versions/node/v5.9.1/lib/node_modules/npm/lib/install/actions.js:54:16)
71 verbose cwd /Users/nbirgani/Avetta
72 error Darwin 15.4.0
73 error argv "/Users/nbirgani/.nvm/versions/node/v5.9.1/bin/node" "/Users/nbirgani/.nvm/versions/node/v5.9.1/bin/npm" "install"
74 error node v5.9.1
75 error npm v3.8.6
76 error Maximum call stack size exceeded
77 error If you need help, you may report this error at:
77 error https://github.com/npm/npm/issues
78 verbose exit [ 1, true ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions