jspm init的结果是:
Package.json file does not exist, create it? [yes]:
err Error: EINVAL, invalid argument
at new Socket (net.js:157:18)
at process.stdin (node.js:687:19)
at MY_FOLDER\aurelia\aurelia-typescript-simple\node_modules\jspm\lib\ui.js:202:12
我想在Sailsv0.11中将/node_modules/es6-shim/es6-shim.min.js包含到客户端。
我试过把它包括在管道里:
var jsFilesToInject = [
// Load sails.io before everything else
'js/dependencies/sails.io.js',
/* INCLUDE NODE MODULE */
'/node_modules/es6-shim/es6-shim.min.js',
// Dependencies like jQuery, or Angular
我正在运行"tsc“,并得到以下错误
typings/browser/ambient/es6-shim/index.d.ts(554,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'any', but here has type 'PromiseConstructor'.
typings/globals/require/index.d.ts(367,13):
我不得不问,因为这让我发疯了。我看到了在Google上安装类型的npm方式,但是有一个添加了一个typings.json文件,然后它添加了键入文件夹并自动从DefinitelyTyped下载了d.ts文件。我用jquery尝试过,但它没有下载。我还尝试重新构建这个项目,我希望package.json包括添加额外类型的命令。
下面是package.json文件中的脚本:
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run l