nelson.gui icon indicating copy to clipboard operation
nelson.gui copied to clipboard

Could not install globally with NPM

Open AcelisWeaven opened this issue 6 years ago • 5 comments

Hi,

I couldn't install the package by running the command npm install -g nelson.gui.

Error output (taken from Windows, but identical with an Ubuntu):

npm ERR! path C:\Users\...\AppData\Roaming\npm\node_modules\nelson.gui\build\nelson.gui.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\...\AppData\Roaming\npm\node_modules\nelson.gui\build\nelson.gui.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\...\AppData\Roaming\npm-cache\_logs\2018-05-10T19_00_47_085Z-debug.log

The issue seems to be that the file build/nelson.gui.js doesn't exist at this point, and cannot be chmoded (and then bin-linked). Running npm install -g nelson.gui --no-bin-links doesn't trigger the error.

Everything seems fine when the package.json is changed to use the file src/nelson.gui.js instead. (see PR #12) I don't know if it could have any side effect.

Tested with:

  • Windows 10 / Node 8.11.1 / npm 5.6.0
  • Ubuntu 16.04 / Node 8.11.1 / npm 6.0.1

AcelisWeaven avatar May 10 '18 19:05 AcelisWeaven

Same issue here ps: coucou 69, je viens du 58 ;)

ianis58 avatar Jun 14 '18 00:06 ianis58

I have the same issue.

pph7 avatar Jun 17 '18 14:06 pph7

The file was actually removed in 0f125015ff395718e1f95b65e6707b544f53623c

pph7 avatar Jun 17 '18 17:06 pph7

@pph7 you can git clone the nelson.gui repo, then edit the package.json: replace this: "nelson.gui": "./build/nelson.gui.js" with this: "nelson.gui": "./src/nelson.gui.js"

then in the parent folder of the cloned repo, run: npm install ./nelson.gui

hope it helps !

ianis58 avatar Jun 24 '18 04:06 ianis58

@ianis58 I did this but then I got some other problems. So I used an earlier version and that worked for me so far.

pph7 avatar Jun 24 '18 18:06 pph7