错误:
root @ debian :/home/test/keygen-radio-master/scripts # NPM install-g yarn
npmwarnengineyarn @1.9. 4: wanted : { ' node ' : '=4.0.0' } (current : { ' node ' : '0. 10.29 )
/usr/local/bin/yarn--/usr/local/lib/node _ modules/yarn/bin/yarn.js
/usr/local/bin/yarn pkg--/usr/local/lib/node _ modules/yarn/bin/yarn.js
yarn @1.9.4/usr/local/lib/node _ modules/yarn
Apt-get安装NPM
建议安装n,然后在n上将节点升级到最新的稳定版
$ npm install -g n
root @ debian :/home/test/keygen-radio-master/scripts # NPM install-gn
/usr/local/bin/n--/usr/local/lib/node _ modules/n/bin/n
n @2.1. 12/usr/local/lib/node _ modules/n
$ n stable
root @ debian :/home/test/keygen-radio-master/scripts # ns table
install : node-v10.8.0
mkdir :/usr/local/n/versions/node/10.8.0
fetch :3359 nodejs.org/dist/v 10.8.0/node-v 10.8.0-Linux-x64.tar.gz
# # # #
installed : v10.8.0
npm install -g cordova@4
npmwarndeprecatednpmconf @0.1. 16: thispackagehasbeenreintegratedintonpmandisnowoutofdatewithrespectttonpm
npmwarndeprecatednode-uuid @1.3. 3: useuuidmoduleinstead
npmwarndeprecatednode-uuid @1.4. 8: useuuidmoduleinstead
npmwarndeprecatedgraceful-fs @3.0. 11: pleaseupgradetograceful-fs4forcompatibilitywithcurrentandfutureversionsonsofnsofnododitywitywition
npmwarndeprecatedminimatch @1.0. 0: pleaseupdatetominimatch3.0.2orhighertoavoidaregexpdosisssue
npmwarndeprecatedhoek @0.9. 1: themajorversionisnolongersupported.pleaseupdateto4. xor newer
npmwarndeprecatedlodash-node @2.4. 1: thispackageisdiscontinued.uselodash @ ^4.0. 0。
npmwarnenginepbkdf2@3.0. 16: wanted : { ' node ' : '=0.12 ' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
npmwarnenginehash-base @3.0. 4: wanted : { ' node ' : '=4' } (current : { ' node ' : '0. 10.29 )
/usr/local/bin/Cordova--/usr/local/lib/node _ modules/Cordova/bin/Cordova
Cordova @4.3.1/usr/local/lib/node _ modules/Cordova
(Cordova-lib @4.3.1(可变标识符@0.0. 1,osenv@0.1.0,properties-parser@0.2.3,bbb共享) init-package-json@1.10.3,XSON@1.10.3,plist@1.1.0,npm@1.3.4,request@2.47.0,through 2
也可以指定版本
n 6.9.1
root @ debian :/home/test/keygen-radio-master/scripts # n6.9. 1
install : node-v6.9.1
mkdir :/usr/local/n/versions/node/6.9.1
fetch :3359 nodejs.org/dist/v6.9.1/node-v6.9.1- Linux-x64.tar.gz
# # # #
installed : v6.9.1
npm install -g yarn
yarn build
yarn start