Vue-loader: "npm intall vue-loader" gives ENOENT issue

Created on 18 Sep 2017  ยท  7Comments  ยท  Source: vuejs/vue-loader

Version

12.2.2

Reproduction link

https://github.com/vuejs/vue/issues/6634

Steps to reproduce

Node: v6.11.2
npm: 3.10.10

npm install vue-loader

What is expected?

Expected the package to be installed.

What is actually happening?

Getting ENOENT error.

[user@app app]$ npm install vue-loader
/app
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”‚ โ””โ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ big.[email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ””โ”€โ”€ [email protected]
โ””โ”€โ”€ [email protected]

npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'

npm WARN [email protected] requires a peer of css-loader@* but none was installed.

npm WARN [email protected] requires a peer of vue-template-compiler@^2.0.0 but none was installed.

npm WARN app No description

npm WARN app No repository field.

npm WARN app No README data

npm WARN app No license field.

npm ERR! Linux 4.9.27-14.31.amzn1.x86_64

npm ERR! argv "/home/user/.nvm/versions/node/v6.11.2/bin/node" "/home/user/.nvm/versions/node/v6.11.2/bin/npm" "install" "vue-loader"

npm ERR! node v6.11.2

npm ERR! npm v3.10.10

npm ERR! path /app/node_modules/js-beautify/js/bin/css-beautify.js

npm ERR! code ENOENT

npm ERR! errno -2

npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/app/node_modules/js-beautify/js/bin/css-beautify.js'

npm ERR! enoent ENOENT: no such file or directory, chmod '/app/node_modules/js-beautify/js/bin/css-beautify.js'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! Please include the following file with any support request:

npm ERR! /app/npm-debug.log

[@* *]$

Most helpful comment

Found the issue.
The latest package of js-beautify breaks

Work around:
npm install [email protected]
npm install vue-loader

All 7 comments

Found the issue.
The latest package of js-beautify breaks

Work around:
npm install [email protected]
npm install vue-loader

Let this be a lesson as to why it is very important to always remove the ^ from your package.json.

@dhershman1 NPM Shrinkwrap will be a better choice, to lock down dependencies properly.

Having the same issue...

Can anyone give me a reason not to use yarn?

@qm3ster Yarn is perfect, just keep yarn.lock file to avoid unexpected issues.
( With normal npm Shrinkwrap will be the choice. )

This is still an issue

Was this page helpful?
0 / 5 - 0 ratings