Linked Questions

Popular Questions

Meteor npm error: Cannot find module 'createjs'

Asked by At

I tried following Meteor's guide on how to install npm packages for createjs, however I end up with the following error message:

Error: Cannot find module 'createjs'

Here's what I ran in a fresh project:

meteor npm install --save createjs
meteor npm install

The package shows up as dependency in my local package.json:

  "dependencies": {
    "@babel/runtime": "^7.1.5",
    "createjs": "^1.0.1",
    "meteor-node-stubs": "^0.4.1"

I try using the package in my body.js as follows:

import createjs from 'createjs';
// tried with standard node require, too:
const createjs = require('createjs');

What am I missing?

Related Questions