PyMakr Install Bug with atom-x64-windows.zip and Atom_Home Env define by GPO


#1

Hi,

I had install on Win 7, the Atom zip on the ProgramFiles Directorie, Create an Env Variable ATOM_HOME for each users and when i try to start Atom, all is fine. But for most of packages there no install problem.
Unfortunatly, I need only to install PyMakr packages and it crash.
Can you help me and guide me to a possible solution ?
Here is a part copy of the the Stack Error Trace (the end of the files) obtained after the install tries :

8588 warn enoent ENOENT: no such file or directory, open ‘C:\Users\LECROI~1\AppData\Local\Temp\apm-install-dir-118830-7244-14fd7tl.e5he\package.json’
8589 verbose enoent This is related to npm not being able to find a file.
8590 warn apm-install-dir-118830-7244-14fd7tl.e5he No description
8591 warn apm-install-dir-118830-7244-14fd7tl.e5he No repository field.
8592 warn apm-install-dir-118830-7244-14fd7tl.e5he No README data
8593 warn apm-install-dir-118830-7244-14fd7tl.e5he No license field.
8594 verbose stack Error: serialport@6.2.2 install: prebuild-install || node-gyp rebuild
8594 verbose stack Exit status 1
8594 verbose stack at EventEmitter. (C:\Program Files\Atom\app-1.31.1\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\index.js:304:16)
8594 verbose stack at emitTwo (events.js:126:13)
8594 verbose stack at EventEmitter.emit (events.js:214:7)
8594 verbose stack at ChildProcess. (C:\Program Files\Atom\app-1.31.1\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
8594 verbose stack at emitTwo (events.js:126:13)
8594 verbose stack at ChildProcess.emit (events.js:214:7)
8594 verbose stack at maybeClose (internal/child_process.js:925:16)
8594 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
8595 verbose pkgid serialport@6.2.2
8596 verbose cwd C:\Users\LECROI~1\AppData\Local\Temp\apm-install-dir-118830-7244-14fd7tl.e5he
8597 verbose Windows_NT 6.1.7601
8598 verbose argv “C:\Program Files\Atom\app-1.31.1\resources\app\apm\bin\node.exe” “C:\Program Files\Atom\app-1.31.1\resources\app\apm\node_modules\npm\bin\npm-cli.js” “–globalconfig” “C:\Users\lecroisey\AppData\Roaming\.atom\.apm\.apmrc” “–userconfig” “C:\Users\lecroisey\AppData\Roaming\.atom\.apmrc” “install” “https://www.atom.io/api/packages/pymakr/versions/1.4.3/tarball” “–runtime=electron” “–target=2.0.7” “–dist-url=https://atom.io/download/electron” “–arch=x64” “–global-style”
8599 verbose node v8.9.3
8600 verbose npm v6.2.0
8601 error code ELIFECYCLE
8602 error errno 1
8603 error serialport@6.2.2 install: prebuild-install || node-gyp rebuild
8603 error Exit status 1
8604 error Failed at the serialport@6.2.2 install script.
8604 error This is probably not a problem with npm. There is likely additional logging output above.
8605 verbose exit [ 1, true ]

Thanks,
Luc


#2

Because pymakr relies on node-gyp to compile native code when you install it, you will need to make sure you have the build tools installed that node-gyp needs.