vue: postinstall script error on installing 2.4.0

Version

2.4.0

Reproduction link

https://github.com/vuejs/vue/blob/dev/package.json#L9

Steps to reproduce

There is no build folder after deploying to npm

What is expected?

install vue 2.4.0 correctly

What is actually happening?

Error: Cannot find module ‘D:\Workspace\GitHub\vue-ssr\node_modules\vue\build\install-hooks.js’

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 19
  • Comments: 19 (2 by maintainers)

Most upvoted comments

Fixed in 2.4.1

npm ERR! Linux 3.13.0-96-generic
npm ERR! argv "/home/jgu/.nvm/versions/node/v6.11.1/bin/node" "/home/jgu/.nvm/versions/node/v6.11.1/bin/npm" "install" "vue"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! vue@2.4.0 postinstall: `node build/install-hooks.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vue@2.4.0 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!     /home/jgu/repos/trd_mon_front/npm-debug.log

me too

I got this error too. ps:my node is version8.1.3,npm 5.0.3