我想经营一个由Angular 1.5编写的项目女巫,我知道那是午餐gulp。首先,我用于npm install安装所有依赖项,然后用于gulp运行它。但失败了。它给了我800个问题。他们大多数看起来像:
226:7 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
292:26 error "$" is not defined
334:19 warning You should use angular.element instead of the jQuery $ object
18:11 error You should not set properties on $scope in controllers. Use controllerAs syntax and add data to "this" angular/controller-as
但是代码在其他计算机上运行良好。所以我想这不是代码的问题。我一定错过了什么。只想运行它。请帮助我,任何信息都会有所帮助。
我建立了另一件事,当我使用npm install安装依赖项时,它给了我一些错误,因此它并没有安装所有依赖项。错误是这样的:
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/jzhu321/Desktop/PwC/Projects/TeamTrack_Project/TeamTrack_Angular/node_modules/utf-8-validate/build'
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/xxxx/Desktop/xx/Projects/xxxx_Project/xxxx_Angular/node_modules/utf-8-validate
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
并且我已经厌倦了某种方法来修复它(选择777 directName ..),但是。不行。
largeQ
相关分类