Coder Social home page Coder Social logo

Comments (11)

fberthel avatar fberthel commented on April 26, 2024 5

I am encountering the same issue, but with the @uirouter/[email protected] package.

npm v5.0.3
typescript v2.4.1

npm i @uirouter/angular-hybrid (should try to install 3.1.2 at the moment)

log:

npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > @uirouter/[email protected] install $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modules\@uirouter\core
npm ERR! prepareGitDep > node ./migrate/migratewarn.js
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > [email protected] install $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modules\phantomjs-prebuilt
npm ERR! prepareGitDep > node install.js
npm ERR! prepareGitDep
npm ERR! prepareGitDep Considering PhantomJS found at $APPDATA$\Roaming\npm\phantomjs.CMD
npm ERR! prepareGitDep Looks like an `npm install -g` on windows; skipping installed version.
npm ERR! prepareGitDep Download already available at $APPDATA$\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
npm ERR! prepareGitDep Verified checksum of previously downloaded file
npm ERR! prepareGitDep Extracting zip contents
npm ERR! prepareGitDep Removing $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modules\phantomjs-prebuilt\lib\phantom
npm ERR! prepareGitDep Copying extracted folder $APPDATA$\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-1500447528170\phantomjs-2.1.1-windows -> $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modu
les\phantomjs-prebuilt\lib\phantom
npm ERR! prepareGitDep Writing location.js file
npm ERR! prepareGitDep Done. Phantomjs binary available at $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
npm ERR! prepareGitDep
npm ERR! prepareGitDep > [email protected] install $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41\node_modules\fsevents
npm ERR! prepareGitDep > node install
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @uirouter/[email protected] install $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41
npm ERR! prepareGitDep > node migrate/migratewarn.js
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @uirouter/[email protected] prepare $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41
npm ERR! prepareGitDep > npm run package
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @uirouter/[email protected] package $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41
npm ERR! prepareGitDep > npm run clean && npm run build && npm run bundle
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @uirouter/[email protected] clean $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41
npm ERR! prepareGitDep > shx rm -rf lib lib-esm _doc build release *.log
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > @uirouter/[email protected] build $APPDATA$\Roaming\npm-cache\_cacache\tmp\git-clone-f457fd41
npm ERR! prepareGitDep > tsc && tsc -m es6 --outDir lib-esm && npm run fixdts
npm ERR! prepareGitDep
npm ERR! prepareGitDep src/stateFilters.ts(19,37): error TS2345: Argument of type '{ relative?: boolean; }' is not assignable to parameter of type '{ relative?: string | StateDeclaration | StateObject; }'.
npm ERR! prepareGitDep   Types of property 'relative' are incompatible.
npm ERR! prepareGitDep     Type 'boolean' is not assignable to type 'string | StateDeclaration | StateObject'.
npm ERR! prepareGitDep src/stateFilters.ts(38,43): error TS2559: Type 'Obj' has no properties in common with type 'TransitionOptions'.
npm ERR! prepareGitDep src/statebuilders/views.ts(100,25): error TS2345: Argument of type 'Promise<{ template: any; }> | Promise<{ component: any; }>' is not assignable to parameter of type '{ template: any; } | PromiseLike<{ template: any; }>'.
npm ERR! prepareGitDep   Type 'Promise<{ component: any; }>' is not assignable to type '{ template: any; } | PromiseLike<{ template: any; }>'.
npm ERR! prepareGitDep     Type 'Promise<{ component: any; }>' is not assignable to type 'PromiseLike<{ template: any; }>'.
npm ERR! prepareGitDep       Types of property 'then' are incompatible.
npm ERR! prepareGitDep         Type '<TResult1 = { component: any; }, TResult2 = never>(onfulfilled?: (value: { component: any; }) => ...' is not assignable to type '<TResult1 = { template: any; }, TResult2 = never>(onfulfilled?: (value: { template: any;
}) => TR...'.
npm ERR! prepareGitDep           Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
npm ERR! prepareGitDep             Types of parameters 'value' and 'value' are incompatible.
npm ERR! prepareGitDep               Type '{ component: any; }' is not assignable to type '{ template: any; }'.
npm ERR! prepareGitDep                 Property 'template' is missing in type '{ component: any; }'.
npm ERR! prepareGitDep
npm ERR! prepareGitDep 2> npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! prepareGitDep npm WARN deprecated [email protected]: This project has been deprecated for "npm install es-module-loader" based on the newer loader spec.
npm ERR! prepareGitDep npm WARN prefer global [email protected] should be installed with -g
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! @uirouter/[email protected] build: `tsc && tsc -m es6 --outDir lib-esm && npm run fixdts`
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the @uirouter/[email protected] build script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     $APPDATA$\Roaming\npm-cache\_logs\2017-07-19T06_58_56_915Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! @uirouter/[email protected] package: `npm run clean && npm run build && npm run bundle`
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the @uirouter/[email protected] package script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     $APPDATA$\Roaming\npm-cache\_logs\2017-07-19T06_58_56_933Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! @uirouter/[email protected] prepare: `npm run package`
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the @uirouter/[email protected] prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     $APPDATA$\Roaming\npm-cache\_logs\2017-07-19T06_58_57_017Z-debug.log
npm ERR! prepareGitDep
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     $APPDATA$\Roaming\npm-cache\_logs\2017-07-19T06_59_10_188Z-debug.log

would be very grateful for a solution.

from angular-hybrid.

claudiuconstantin avatar claudiuconstantin commented on April 26, 2024 2

Ok, I think I've got rid of it. The latest @uirouter/angular-hybrid 3.1.4 seems that contains a fix for it, but in my case if was necessary to npm clear cache --force and temporary remove package-lock.json file that still contained some references to the old problematic @uirouter/angularjs 1.0.4. I hope this helps anyone having this issue

from angular-hybrid.

BenevidesLecontes avatar BenevidesLecontes commented on April 26, 2024 1

I was able to do it, installing some packages as global, like shx and isArray.

from angular-hybrid.

claudiuconstantin avatar claudiuconstantin commented on April 26, 2024 1

I'm getting the same error even for @uirouter/[email protected]...

from angular-hybrid.

jeffora avatar jeffora commented on April 26, 2024

Hm, the only issue I encountered was that the version of @uirouter/angularjs that is referenced ("@uirouter/angularjs": "git://github.com/angular-ui/ui-router#SNAPSHOT-20170612") is unable to compile with typescript 2.4, which is the latest version that gets installed (matches the semver requirements of @uirouter/angularjs). This issue can be fixed in this library by referencing a more recent version of @uirouter/angularjs - the latest in npm (1.0.5) should work, or #SNAPSHOT-20170629.

from angular-hybrid.

wojciak avatar wojciak commented on April 26, 2024

+1

from angular-hybrid.

G-Ray avatar G-Ray commented on April 26, 2024

Same problem with npm 5.x
WIth npm 3.x installation is successful

from angular-hybrid.

httpete avatar httpete commented on April 26, 2024

I am seeing this still, [email protected] on linux with node 8.5.0 and npm 5.3.0 specifically. Even if I do the npm clear cache, it won't bring in @uirouter/angularjs and it croaks. Thoughts? Is npm 5.3.0 just bad? You want to talk pesky, you have to clear the cache, rm node_modules, make sure there is no package-lock file lying around, and then it goes.

from angular-hybrid.

christopherthielen avatar christopherthielen commented on April 26, 2024

@httpete I just tried using node 8.5.0 and npm 5.3.0 on mac, and it seems to work fine.

Going to fire up a linux VM once it downloads

screen shot 2018-02-21 at 7 41 08 pm

from angular-hybrid.

christopherthielen avatar christopherthielen commented on April 26, 2024

@httpete I downloaded and installed ubuntu, then (using nvm) installed node 8.5.0/npm 5.3.0. It's installing @uirouter/angular-hybrid fine in an empty project.

Is the problem due to something in your package-lock.json file? Do you want to post your package.json and package-lock.json to attempt to reproduce the problem?

from angular-hybrid.

httpete avatar httpete commented on April 26, 2024

I am not seeing this anymore @christopherthielen thank you. The 4.0.0 works great. I did see the need to npm cache clean -f, but I don't think it's in the scope of your project.

from angular-hybrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.