Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Compilation error with buffer. #82

Closed
Kradre opened this issue May 8, 2017 · 1 comment
Closed

Compilation error with buffer. #82

Kradre opened this issue May 8, 2017 · 1 comment

Comments

@Kradre
Copy link

Kradre commented May 8, 2017

Error happend in compilation of simple index.js with few functions.
`C:\Users\Kradre\Desktop\mqttBroker>pkg index.js

Targets not specified. Assuming:
node4-linux-x64, node4-macos-x64, node4-win-x64
C:\Users\Kradre\AppData\Roaming\npm\node_modules\pkg\lib-es5\producer.js:89
return Buffer.alloc(padding);
^
TypeError: Buffer.alloc is not a function
at paddingBuffer (C:\Users\Kradre\AppData\Roaming\npm\node_modules\pkg\lib-es5\producer.js:89:17)
at C:\Users\Kradre\AppData\Roaming\npm\node_modules\pkg\lib-es5\producer.js:25:48
at MultiStream._next (C:\Users\Kradre\AppData\Roaming\npm\node_modules\pkg\node_modules\multistream\index.js:81:27)
at ReadStream.onEnd (C:\Users\Kradre\AppData\Roaming\npm\node_modules\pkg\node_modules\multistream\index.js:119:10)
at ReadStream.g (events.js:260:16)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:913:12)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)`

igorklopov added a commit that referenced this issue May 12, 2017
@igorklopov
Copy link
Contributor

Please upgrade your node.js version to 4.5.0 or higher.

xdevs23 pushed a commit to xdevs23/pkg that referenced this issue Jul 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants