Error in npm install

Asked 2 years ago, Updated 2 years ago, 95 views

When I installed npm in my new Mac environment, I found the following error.
npm installation in the directory where package.json is located.
Please tell me where to look.

environment
MacOS ELCAPITAN 10.11.4
% node-v                                                                                                                    
v0.11.11

% gulp-v(git) - [master]
[02:12:17] CLI version 3.9.1
[02:12:17] Local version 3.9.1

>[email protected] install/Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass
>node scripts/install.js

Binary downloaded and installed at/Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node

>[email protected]/Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass
>node scripts/build.js

` /Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node`exists. 
 Testing binary.
dyld:lazy symbol binding failed:Symbol not found:__ZN2v814ObjectTemplate3NewEPNS_7IsolateE
  Referenced from: /Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
  Expected in —flat namespace

dyld: Symbol not found: __ZN2v814 ObjectTemplate3 NewEPNS_7 IsolateE
  Referenced from: /Users/xxx/phpstorm/bbs/resources/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
  Expected in —flat namespace

node.js gulp npm

2022-09-29 22:55

1 Answers

Why don't you delete node_modules/ and try npm install again?

If there is any residue left from installation in a different environment, I feel that this error will occur.

dyld:lazy symbol binding failed:Symbol not found:_node_module_register-Stack Overflow


2022-09-29 22:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.