Terminal -
"WARNING in Invalid constructor parameter decorator in D:/New folder/SilverLife/node_modules/@angular/fire/fesm2015/angular-fire.js:
() => [
{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }
]
ERROR in getInternalNameOfClass() called on a non-ES5 class: expected
AngularFireModule to have an inner class declaration"
Run Code Online (Sandbox Code Playgroud)
我正在尝试npm install使用预安装脚本运行命令package.json.我知道它是反模式但我需要以root身份运行一些脚本.
通过添加.npmrc包含unsafe-perm = true到我的根目录的文件,它工作正常.但它不能通过在我的package.json文件中添加配置属性来工作:
{
"name": "foo",
"version": "1.4.4",
"config": {
"unsafe-perm":true
},
"scripts" : {
"preinstall" : "npm install -g bower"
}
}
// It is not working
Run Code Online (Sandbox Code Playgroud)
根据NPM配置文档,可以在我的包文件中添加此属性.我想明白为什么它不起作用.
npm 警告生命周期 angular-seed-advanced@0.0.0~postinstall: 无法在 wd %s %s (wd=%s) angular-seed-advanced@0.0.0 gulp check.versions && gulp build.bundle.rxjs && 中运行npm prune && gulp webdriver && npm run nativescript-install && node tools/install.js /Users/xxxx/Downloads/angular-seed-advanced-master
npm ×2
angular ×1
angular9 ×1
angularfire ×1
angularjs ×1
firebase ×1
gulp ×1
javascript ×1
node.js ×1
package.json ×1