nelson.gui
nelson.gui copied to clipboard
Could not install globally with NPM
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
Same issue here ps: coucou 69, je viens du 58 ;)
I have the same issue.
The file was actually removed in 0f125015ff395718e1f95b65e6707b544f53623c
@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 I did this but then I got some other problems. So I used an earlier version and that worked for me so far.