How to install NPM on Dreamhost shared

856 Views Asked by At

Fatal error in , line 0

Check failed: reservation_.SetPermissions(protect_start, protect_size, permission).

#FailureMessage Object: 0x78686cd993b0

1: 0xa889e1 \[node\]
2: 0x1a37055 V8_Fatal(char const\*, ...) \[node\]
3: 0xdc5b0f \[node\]
4: 0xdc882d v8::internal::PagedSpace::SetReadAndExecutable() \[node\]
5: 0xd0b473 v8::internal::Isolate::Init(v8::internal::ReadOnlyDeserializer\*, v8::internal::StartupDeserializer\*) \[node\]
6: 0x11033ce v8::internal::Snapshot::Initialize(v8::internal::Isolate\*) \[node\]
7: 0xbbcedd v8::Isolate::Initialize(v8::Isolate\*, v8::Isolate::CreateParams const&) \[node\]
8: 0xa5ce81 node::NodeMainInstance::NodeMainInstance(v8::Isolate::CreateParams\*, uv_loop_s\*, node::MultiIsolatePlatform\*, std::vector\<std::string, std::allocator\<std::string\> \> const&, std::vector\<std::string, std::allocator\<std::string\> \> const&, std::vector\<unsigned long, std::allocator\<unsigned long\> \> const\*) \[node\]
9: 0x9eab64 node::Start(int, char\*\*) \[node\]
10: 0x6f8836e0ac87 \__libc_start_main \[/lib/x86_64-linux-gnu/libc.so.6\]
11: 0x982005 \[node\] `

Illegal instruction I took this kind og error I want to install NPM on Dreamhost shared.

2

There are 2 best solutions below

1
ahgomez On

DH do not support in certain context version 14+ of node...I had a similar issue, I choose to work with version 14.21.3 and it worked...

0
Zosoled On

From the DreamHost Knowledge Base:

If installing Nodejs as a user on a Shared or Dedicated Server, there may be an error that looks like this:

# Fatal error in , line 0
# Check failed: reservation_.SetPermissions(protect_start, protect_size, permission).
#
#
#
#FailureMessage Object: 0x3dfe93bb400

If so, you'll need to update the security controls on each newly downloaded binary file before it will work. Run the following command as your user after each new version you download:

setfattr -n user.pax.flags -v "mr" $(find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")

This will need to be done each time a new version is installed.

Source