Preloader image
DDD

블럭체인

npm WARN lifecycle scrypt@6.0.3~preinstall: cannot run in wd %s %s (wd=%s) scrypt@6.0.3 node node-scrypt-preinstall.js

작성자 관리자 (admin)
조회수 469
입력일 2019-01-11 10:37:09

web3 npm install 오류 구문 해결 방법

# npm install web3
npm WARN deprecated tar.gz@1.0.7: ??  WARNING ?? tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN lifecycle scrypt@6.0.3~preinstall: cannot run in wd %s %s (wd=%s) scrypt@6.0.3 node node-scrypt-preinstall.js /root/node_modules/.staging/scrypt-8ff2ce1a
.
.
.

# npm i tar -g
/usr/lib
└─┬ tar@4.4.8 
  ├── chownr@1.1.1 
  ├── fs-minipass@1.2.5 
  ├── minipass@2.3.5 
  ├── minizlib@1.2.1 
  ├─┬ mkdirp@0.5.1 
  │ └── minimist@0.0.8 
  ├── safe-buffer@5.1.2 
  └── yallist@3.0.3
 

# npm install web3 -g
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz@1.0.7: ??  WARNING ?? tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar

> websocket@1.0.26 install /usr/lib/node_modules/web3/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/usr/lib/node_modules/web3/node_modules/websocket/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  COPY Release/validation.node
make: Leaving directory `/usr/lib/node_modules/web3/node_modules/websocket/build'
/usr/lib
└─┬ web3@1.0.0-beta.37 
  └─┬ web3-core@1.0.0-beta.37
    └─┬ web3-core-requestmanager@1.0.0-beta.37
      └─┬ web3-providers-ws@1.0.0-beta.37
        └── websocket@1.0.26  (git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2)
 

^