jspm hot reloading install - command not found following installation globally

I attempted to set up the hot reload module of jspm using the chokidar-socket-emitter. The installation process went smoothly, but I encountered an issue when trying to start the watch task as outlined in this guide:

Below is the log from my installation:

XXXXXMacBookPro:dasding xxxxxx$ sudo npm i -g chokidar-socket-emitter \

[email protected] install /usr/local/lib/node_modules/chokidar-socket-emitter/node_modules/chokidar/node_modules/fsevents node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/chokidar-socket-emitter/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v14-darwin-x64/fse.node" is installed via remote [email protected] /usr/local/lib/node_modules/chokidar-socket-emitter ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

XXXXXMacBookPro:dasding xxxxxx$ chokidar-socket-emitter

bash: chokidar-socket-emitter: command not found

XXXXXMacBookPro:dasding xxxxxx$

Does anyone have any insight into why the command cannot be found? I am unsure of how to troubleshoot this issue, as global installs usually work without any problems.

Thank you in advance

Answer №1

For anyone encountering a similar issue, I ran into compatibility issues with my current node.js installation and the newest version of chokidar-socket-emitter. I ended up installing an older version which caused confusion when following the documentation. Once I updated my node.js installation, everything worked smoothly.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Sending arguments to node when called through executable npm scripts (".bin")

Creating an npm CLI command known as the mycommand module involves defining it in a specific manner: { ... "name": "mycommand", "bin": { "mycommand": "bin/mycommand.js" }, ... } The content of mycommand.js should resemble this: #!/usr/bin/ ...

Error: Unable to locate module 'stream'

After updating from Reaction Commerce v1.21.1 to v1.13.0 (which utilizes Meteor 1.7.0.1), a stream error started occurring: modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:241 Uncaught Error: Cannot find module 'stream' at m ...

Experiencing an unusual issue with grunt: The Gruntfile.js seems to be missing the 'flatten' method

Encountering an unusual error message while attempting to run grunt stated: TypeError: Object Gruntfile.js has no method 'flatten' Being a beginner with node.js, npm, and grunt, I believe my installation of node, npm, and grunt was done correctl ...

What are the steps for installing the most recent version of `yeoman`?

After installing the latest version of node, I checked in cmd using the following command: C:\Users\Mohamed.Arif>node --version && npm --version v0.10.35 1.4.28 Now, I am attempting to install the newest version of yeoman. However, o ...

Exploring the Differences Between NPM Jquery on the Client Side and Server

I'm still getting the hang of node and npm, so this question is more theoretical in nature. Recently, I decided to incorporate jQuery into my website by running npm install jquery, which placed a node_modules directory in my webpage's root along ...

cPanel is incompatible with node version 12.16.0

I am facing a dilemma regarding hosting my node API, which was built using node version 12.16.0, on cPanel. The available version for node in cPanel is 12.9.0 (Most recent). How should I proceed? Is the node version really a critical factor in this case? ...

Node scripts and node bins are causing errors in Vue.js when running npm

While attempting to run my Vue project with the command npm run serve I encountered an error message that read: [email protected] serve /home/numan/Desktop/vue-getting-started/07-accessing-data/begin/vue-heroes vue-cli-service serve sh: 1: vue- ...

Minimizing the size of a production application's bundle

In a production application I am working on, the bundle size is currently 8.06MB. # Output from npm build File sizes after gzip: 1.67 MB build/static/js/3.73cf59a2.chunk.js 794.29 KB build/typescript.worker.js 131.13 KB build/css.worker.js 1 ...

Deploying a Node.js app on Heroku using a Mac has hit a roadblock - encountering the error message "sh: 1: nodemon: not found" along with "npm ERR! `nodemon fileName.js

Guide to Deploying on Heroku with Node.js using Mac Encountered Problem: Error message: State changed from starting to crashed && sh: 1: nodemon: not found && Failed at...start script && status 1...code=H10 After developing my ...

Setting up the most recent Node.js iteration on AWS with NPM is a breeze

Attempting to upgrade Node.js to the latest stable version by executing the commands sudo npm cache clean -f sudo npm install -g n sudo n stable Encountering an SSL error when running the second command npm http GET https://registry.npmjs.org/n npm ERR ...

Apologies, the package "@jest/environment@^24.5.0" that is needed by "@jest/reporters@^24.5.0" could not be located on the "npm" registry

Recently started learning React Native by following Facebook's tutorial available at https://facebook.github.io/react-native/docs/getting-started using React Native CLI. I successfully created a project yesterday. However, today when I tried to creat ...

Error encountered during npm install and node-gyp build on one out of two identical machines

I am facing an issue while trying to run npm install on my Ubuntu 14.04 VPS specifically when it comes to installing karma. Even though the command npm install is being executed from a Jenkins build step, it still fails both from the command line as well a ...

Facing difficulties installing bcrypt using npm on an EC2 instance

While working on an Amazon EC2 instance running Ubuntu Server 14.04, I encountered an issue with the npm install command. Specifically, it failed to install bcrypt ("bcrypt": "^0.8.1" in my package.json). Below is the error message that was displayed: &g ...

Employing a tool in the upcoming project that is scheduled to execute on an SSH runner in GitLab encounters issues

Currently, I am utilizing the self-managed version 14.6 of GitLab. In my .gitlab-ci.yaml pipeline file, I have defined two jobs: build and deploy. The build job runs on a docker executor through gitlab-runner and generates an artifact named build/, which c ...

Error encountered during npm installation: "Authentication of host key failed."

Trying to retrieve a module from Gitbucket that was built on a windows server is causing an error during the npm install process. npm ERR! Error while executing: npm ERR! C:\Users\~~~~\AppData\Local\Programs\Git\cmd&bso ...

Localhost is causing issues with Laravel in retrieving webfonts

I was trying to incorporate font-awesome into my Laravel project, but encountered a strange error. When I run the project, the following error appears in the console: GET http://localhost/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?5 ...

Browserify is having trouble locating the necessary dependencies for the children

In my coding project, I have set up a repository that includes a basic index.js file: (function() { "use strict"; var angular = require('angular'); })(); To bundle this code, I am using gulp with the following task (full code provided be ...

Expo Snack shows the error message "package not found in registry" while trying to add an npm package

While working on my project in Expo Snack, I came across an issue with the public npm package mentioned below. The strange thing is that I can access and utilize the package locally within my app without any problems, but when I try to run it through Exp ...

"Double socket event triggers within a short period of time

I'm currently developing a multiroom chat system using nodejs and socket.io. Below is the server-side script: socket.on('sendchat', function (data) { socket.username = data.name; // store the room name in the socket session for th ...

Use the constant INLINE with npm commands to specify inline behavior

Today I was working on Angular2 using the template provided at . Following the installation guide, I executed the commands as instructed. I have successfully installed Node.js v6.9.1. npm install --Executed without any issues. npm server --Encountered a ...