node問題解決記錄

1.無法加載文件 C:\Users\reyna.chen\AppData\Roaming\npm\ng.ps1,因爲在此係統上禁止運行腳本

      1.打開Windos PowerShell

      2.set-ExecutionPolicy RemoteSigned

      3.最後通過 get-ExecutionPolicy 查看當前的狀態

2.rxjs版本錯誤

ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
node_modules/rxjs/internal/types.d.ts(82,52): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(82,88): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(82,92): error TS1109: Expression expected.

 rxjs版本錯誤,修改版本號

npm uninstall rxjs --save

npm install [email protected] --save
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章