NPM

谷歌下载地址:

https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.1/node-v57-linux-x64.tar.gz

 https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.0.0/node-v51-darwin-x64.tar.gz


https://registry.npmjs.org/grpc/-/grpc-1.7.1.tgz


##################################################################################################################

NPM设置淘宝加速

npm config set registry=http://registry.npm.taobao.org

##################################################################################################################

解决npm 没有权限读写文件夹的问题:

sudo npm install --unsafe-perm

If you get a permission error such as Error: EACCES: permission denied on a pkcs11js folder 

try running this command

sudo npm install pkcs11js --unsafe-perm=true --allow-root

Then re-run 

sudo npm install.

It's important that the install returned with no errors (warnings are fine). If you have npm installation errors you will have to decipher those on your own! Good luck.

##################################################################################################################

'node-pre-gyp install --fallback-to-build' fails 

npm install --save @google-cloud/vision

##################################################################################################################

初学node,按照书上的流程安装nodejs,当安装canvas的时候(npm install canvas)遇到问题

node-gyp rebuild

然后就卡住了,查了下,基本上就是各种依赖问题,几经折腾就在要放弃的时候,终于在网上发现node官方wike

https://github.com/Automattic/node-canvas/wiki/Installation---Ubuntu-and-other-Debian-based-systems

$ sudo apt-get update $ sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++

##################################################################################################################

当进行hyperledger composer的first-network进行npm install时出现npm WARN lifecycle [email protected]~prepublish : cannot run in wd %s %s (wd=%s) [email protected] mkdirp ./dist && composer archive create --sourceType dir --sourceName . -a ./dist/my-network.bna /opt/gopath/src/github.com/hyperledger/composer/development/my-network的问题??

   怎么办?

npm run prepublish

你可能感兴趣的:(NPM)