Skip to content

Error installing Vue directly from git using npm #6059

Closed
@mitar

Description

@mitar

I am trying to install Vue directly from GitHub:

npm install https://github.com/vuejs/vue.git#dev

I would expect that install succeeds like it does for:

npm install https://github.com/vuejs/vue.git#master

But I get the error:

> vue@2.3.3 postinstall /Users/user/Temp/test/node_modules/vue
> node build/install-hooks.js

module.js:471
    throw err;
    ^

Error: Cannot find module '/Users/user/Temp/test/node_modules/vue/build/install-hooks.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:504:3
npm WARN enoent ENOENT: no such file or directory, open '/Users/user/Temp/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.11.0/bin/node" "/Users/user/.nvm/versions/node/v6.11.0/bin/npm" "install" "https://github.com/vuejs/vue.git#dev"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! vue@2.3.3 postinstall: `node build/install-hooks.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vue@2.3.3 postinstall script 'node build/install-hooks.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the vue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build/install-hooks.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs vue
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls vue
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/Temp/test/npm-debug.log

Versions:

$ npm -v
3.10.10

Current Vue dev commit is 0d6ad12.

Note: I could not use the web interface to create this issue because I could not host reproduction for this because it involves npm.

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