删除了node_module后使用cnpm i重新安装,发现问题了,使用node5.12可以,node6和7都不行,为什么?
[1] Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
[1] ** browser-sync config **
[1] { injectChanges: false,
[1] files: [ './**/*.{html,htm,css,js}' ],
[1] watchOptions: { ignored: 'node_modules' },
[1] server: { baseDir: './', middleware: [ [Function], [Function] ] } }
[1] dyld: lazy symbol binding failed
[1] : Symbol not found: _uv_default_loop
[1] Referenced from: /Users/ad/WebProjects/ng2/node_modules/.1.0.15@fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
[1] Expected in: flat namespace
[1]
[1] dyld: Symbol not found: _uv_default_loop
[1] Referenced from: /Users/ad/WebProjects/ng2/node_modules/.1.0.15@fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
[1] Expected in: flat namespace
[1]
[0] 11:24:52 AM - Compilation complete. Watching for file changes.
package.json
{
"name": "ng2",
"version": "1.0.0",
"scripts": {
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
"lite": "lite-server",
"tsc": "tsc",
"tsc:w": "tsc -w"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/angular/angular.io/blob/master/LICENSE"
}
],
"dependencies": {
"@angular/common": "~2.1.2",
"@angular/compiler": "~2.1.2",
"@angular/core": "~2.1.2",
"@angular/forms": "~2.1.2",
"@angular/http": "~2.1.2",
"@angular/platform-browser": "~2.1.2",
"@angular/platform-browser-dynamic": "~2.1.2",
"@angular/router": "~3.1.1",
"@angular/upgrade": "~2.1.2",
"angular-in-memory-web-api": "~0.1.5",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.39",
"zone.js": "^0.6.25",
"angular2-cookie": "^1.2.5",
"angular2-infinite-scroll": "^0.2.6",
"angular2-localstorage": "^0.4.0",
"angular2-materialize": "^6.1.1",
"materialize-css": "^0.97.8",
"ng2-image-lazy-load": "^2.0.9"
},
"devDependencies": {
"@types/core-js": "^0.9.34",
"@types/node": "^6.0.45",
"concurrently": "^3.0.0",
"lite-server": "^2.2.2",
"typescript": "^2.0.3"
}
}
xcode issue?