安裝node js

安裝node js

在官網(wǎng)現(xiàn)在msi的安裝包

無(wú)需解壓并且會(huì)配置好環(huán)境變量,會(huì)安裝好NPM

https://nodejs.org/zh-cn/download/

后安裝 ionic 和cordova? 指定版本語(yǔ)法

npm install -g ionic@2.0.0 cordova@8.1.2

安裝Python 在官網(wǎng)下載版本安裝包

安裝成功后

path=%path%;C:\Python? 可配置環(huán)境便令(C:/Python為安裝目錄)

后安裝 gulp sass合并代碼npm install node-sass gulp-sass

安裝Git

用 -v命令看版本

安裝問題:

代理問題 rollbackFailedOptional verb npm-session

去掉npm代理

1 npm config delete proxy

2 npm config delete https-proxy

設(shè)置代理

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

npm config set registry?https://registry.npm.taobao.org

– 配置后可通過下面方式來驗(yàn)證是否成功

npm config get registry

– 或npm info express

運(yùn)行時(shí)

在git bash 中執(zhí)行了bower install 提示 bower command not found

cmd 運(yùn)行: npm install -g bower, 輸出顯示安裝成功

npm install# MSBUILD : error MSB4132: 無(wú)法識(shí)別工具版本“2.0”。可用的工具版本為 "4.0"。

先確定安裝了Python并且可以通過Python -v 查看版本

然后執(zhí)行 npm install?--msvs_version 2015?

然后新開一個(gè)cmd一般沒問題了就

npm install 時(shí)候報(bào)錯(cuò)(花了我3個(gè)小時(shí))

Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win3

2-x64-48_binding.node":

Hint: If github.com is not accessible in your location

? ? ? try setting a proxy via HTTP_PROXY, e.g.

? ? ? export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

? ? ? npm config set proxy http://example.com:8080

解決方案

試了好多遍才好的,我也不知道為啥

(可能是最后一遍我先運(yùn)行了這個(gè)

npm uninstall node-sass

重新安裝

npm install node-sass)

##但有一個(gè)更簡(jiǎn)單的方法---親測(cè)沒問題

解決Cannot download "https://github.com/sass/node-sass/releases/download/binding.nod的問題

一句命令解決 npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/? ? ##

1、npm install -g node-gyp

2、然后運(yùn)行:運(yùn)行 npm install –global –production windows-build-tools

gulp一直在報(bào)錯(cuò)? primordials is not defined,有人說版本不兼容,所以回退了node的版本

第一步:下載nvm并安裝 (推薦使用nvm-setup.zip) https://github.com/coreybutler/nvm-windows/releases

第二步:使用nvm命令切換node版本

nvm? ? ? ? ? ? ? ? ? // 會(huì)提示nvw下的相關(guān)命令

nvm ls? ? ? ? ? ? ? // 查看已安裝node版本

nvm install vXX? ? ? // 安裝對(duì)應(yīng)vXX版本的node

nvm uninstall vXX? ? // 卸載對(duì)應(yīng)vXX版本的node

nvm use xxx? ? ? ? ? // 選擇使用XXX版本

回退完node版本后gulp 報(bào)錯(cuò)

用Gitbash? 運(yùn)行的gulp sass

但是我用cmd運(yùn)行的 npm? rebuild node sass

我用Git bash運(yùn)行 npm rebuild node sass?

他就好了

(并重試過命令 npm uninstall node sass? ? ? npm install node sass)

下一步報(bào)錯(cuò) grade command not fund(真的要死人了)

Gradle的官網(wǎng)有個(gè)詳細(xì)的介紹

1、先保證裝了Java JDK

2、下載一個(gè)版本

3、復(fù)制解壓的路徑到bin目錄

4、新增到path變量中

5、gradle -v 驗(yàn)證

接下來就是Jenkins了.....

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容