JSPM bundle fails when use node-sass module

421 views Asked by At

I'm triyng to build a module for Jspm using node-sass but when i try to bundle the package I'll receive this error:

jspm bundle-sfx index

Building the single-file sfx bundle for index...

err Error: Error loading "npm:[email protected]/package.json!github:systemjs/[email protected]" at file:/Users/davide/Learning/JspmNodeSass/jspm_packages/npm/[email protected]/package.json Error loading "npm:[email protected]/package.json!github:systemjs/[email protected]" from "index" at file:/Users/davide/Learning/JspmNodeSass/index.js ENOENT, open '/Users/davide/Learning/JspmNodeSass/jspm_packages/npm/[email protected]/package.json'

This is the sequence to create from scratch the project and create the error:

mkdir JspmNodeSass
cd JspmNodeSass/
npm init
npm install --save-dev jspm
jspm init
jspm install -save npm:node-sass

create an index.js with the folowing content:

// index.js
var sass = require('node-sass');

..then run

jspm bundle-sfx index
0

There are 0 answers