pm2 install profiler installs v8-profiler-node8 but code looks for v8-profiler

Created on 1 Mar 2018  路  4Comments  路  Source: Unitech/pm2

Hi,

When you run pm2 install profiler it installs the v8-profiler-node8 package. however when you try to use the profiler to create a snapshot with pm2 snapshot it complains v8-profiler is not available.

It seems that code is trying to require a package called v8-profiler even though what was actually installed was called v8-profiler-node8

see
https://github.com/Unitech/pm2/blob/0d009364d58b3f3cfe2c6fa40606c441ba73d5e9/lib/Daemon.js#L156

In progress Pending Release Bug

Most helpful comment

When is this expected to ship?

All 4 comments

Hi @mrfelton

Good catch. Indeed we switch from v8-profiler to v8-profiler-node8 for compatibility reason.
I will fix it soon ;)

When is this expected to ship?

PM2 3.0.0 has been released:

$ npm install pm2@latest -g
$ pm2 update

Be aware of breaking changes, especially drop support for node 0.12.
Full list here : https://github.com/Unitech/pm2/blob/master/CHANGELOG.md

unfortunately this didn't fix the ' Error: v8-profiler is not available ' issue..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FujiHaruka picture FujiHaruka  路  3Comments

phra picture phra  路  3Comments

ghost picture ghost  路  3Comments

rajendar38 picture rajendar38  路  3Comments

rangercyh picture rangercyh  路  4Comments