Skip to content

npm run dev throws an error #25

@bozzmob

Description

@bozzmob

npm run dev throws an error

I have done npm install.

Error : sh: cross-env: command not found

bozzmob-MBP:add-on bozzmob$ npm run dev

> [email protected] dev /Users/bozzmob/Documents/files/firefox/add-on
> cross-env NODE_ENV=development webpack-dev-server --open --hot

sh: cross-env: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dev: `cross-env NODE_ENV=development webpack-dev-server --open --hot`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/bozzmob/.npm/_logs/2019-07-22T04_40_43_883Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions