[英]angular jasmine-node not installing via node npm
我已經嘗試了幾次通過他們的文檔安裝我的第一個AngularJS項目: https : //docs.angularjs.org/misc/contribute
*# Clone your Github repository:
git clone "git@github.com:<github username>/angular.js.git"
# Go to the AngularJS directory:
cd angular.js
# Add the main AngularJS repository as an upstream remote to your repository:
git remote add upstream "https://github.com/angular/angular.js.git"
# Install node.js dependencies:
npm install
# Install bower components:
bower install
# Build AngularJS:
grunt package*
每次我嘗試npm安裝時,它都會為jasmine-node返回一個錯誤
我一直在尋找解決方案,並嘗試了許多方法和有希望的測試,但仍然沒有收到任何運氣。
謝謝您的幫助!
這些文檔僅適用於希望做出貢獻的人員(在angularjs庫上工作),而不適用於使用 angular構建項目的人員。 在我看來,您似乎想要后者。
有很多教程,只需搜索angularjs beginner tutorial
,然后找到最適合您的angularjs beginner tutorial
。
我經常遇到的一個問題是由於npm錯誤而導致的協議問題,特別是對於Bower。
您可以使git為您替換協議。 趕緊跑:
git config --global url."https://".insteadOf git://
抱歉,如果此線程有點混亂,但希望它也能幫助某個人。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.