Running `npm install ts-node-dev --save-dev` results in an error stating "file or directory not found. Please change the permissions of `node_modules/ts-node-dev/lib\bin

Having trouble with the installation of ts-node-dev:

When running npm i ts-node-dev --save-dev

An error is thrown:

ERROR: ENOENT - The file or directory '/node_modules/ts-node-dev/lib\bin.js' does not exist

Answer №1

Take a look at the issues that are open on GitHub repository #224 and #235.

Currently, there are two suggested workarounds:

  1. Update npm to the latest version.

  2. Alternatively, you can install version 1.0.0-pre.65.

    To try this solution in your project directory, run the following command:

    npm un -D ts-node-dev && npm i -D <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1662653b787972733b7273605627382638263b666473382023">[email protected]</a>
    

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

Using Node.js: Mimicking Keystrokes on the Server Side (Similar to a Macro)

I am currently working on a node.js script that is designed to replicate the functionality of sending keypresses, such as the up arrow or the "a" button. My ultimate goal is to create a clone of the popular game Twitch Plays Pokemon. Essentially, whenever ...

I'm trying to display hidden forms on a webpage when a button is clicked using the DojoToolkit, but I'm having trouble figuring out what's going wrong with my code

Currently, I am trying to grasp the concepts of Dojotoolkit and my objective is to display a form when a button is clicked. Upon reviewing other examples, my code seems correct to me; however, there appears to be something crucial that I am overlooking but ...

Issue: Invariant violation: The use of <NavLink> is restricted to within a <Router> when working with mbdreact

I'm working on creating a navigation bar using mbdreact, but I'm encountering an error that says: Error: Invariant failed: You should not use <NavLink> outside a <Router> Below is the code I'm using: import React, { Compon ...

In my development environment, the page does not have scroll functionality, but in the production environment, it is scrollable

Whenever I open a table or any other element with overflowing content, I encounter an issue with the scrolling bar. Even though the CSS includes overflow-y: scroll;, the scroll bar on the right remains in gray and does not allow me to scroll down when the ...

The structure '{ children: Element; }' does not share any properties with the 'IntrinsicAttributes' type in the React layout component

This code snippet defines the layout structure: import type { NextPage } from 'next' import React from 'react' interface LayoutProps { children: React.ReactNode; } const Layout: NextPage = ({ children }: LayoutProps) => { retur ...

NPM encountered an error while trying to execute the command as it was not found

Encountering a persistent NPM error that I cannot resolve. Interestingly, this issue is exclusive to an M2 Mac as the project runs smoothly on an intel Mac. Noteworthy, both NPM and Node are functioning properly with another project I am working on. The ve ...

How come (23 == true) is incorrect but (!!23 == true) is correct? After all, there is === for exact comparisons

The question boils down to this: are both 23 and true truthy values? If so, shouldn't they be equal under the loose comparison operator ==? However, there is also the strict comparison operator === for cases where precise equality is required. UPDATE ...

Make sure the static variable is set up prior to injecting the provider

In our Angular6 application, we utilize a globalcontextServiceFactory to initialize the application before rendering views. This process involves subscribing to get configuration from a back-end endpoint and then using forkJoin to retrieve environment app ...

What is causing the failure in retrieving the smallest number from this array?

The maximum value should be 9.99, and the minimum value should be 6.88 let arr = [["2019","00","01", 9.99], ["2018","00","01", 9.32], ["2017","00","01", 6.88]] let max = Math.max(Number(...arr.map((o) => { return o[3] }))); //9.99 let min = Math.mi ...

Error when using ES6 modules in ts-jest

I keep running into an 'unexpected token' error whenever I run my tests using ts-jest. To show you exactly what's going on, I've created a small repo with all of my current configurations available here: https://github.com/ramoneguru/t ...

Obtaining Prisma arguments by providing the table name as a string

Is there a way to retrieve the query arguments for a Prisma function by only passing the table name? Currently, I know I can obtain the table by providing the table name as a string in the following manner: function (tablename: string) { await prisma.[tab ...

How did I end up facing two distinct decimal separators side by side like this?

As I find myself in France where the decimal separator is a comma, I have created this component that showcases a discrepancy in displaying numbers: Both commune.population and commune.surface are decimal numbers (with the type number) However, they unexp ...

Is there a way to hide the <v-otp-input> field in a Vue.js application?

For more information, please visit https://www.npmjs.com/package/@bachdgvn/vue-otp-input <script> export default { name: 'App', methods: { handleOnComplete(value) { console.log('OTP completed: ', value); } ...

$http promise chain executing in an incorrect sequence

As a beginner in angularjs, my objective is straightforward. I aim to execute an ajax request to fetch data and, upon completion, I want to initiate a second call to retrieve another set of data based on the information from the initial set. To achieve th ...

How to extract just the year from Material-UI's date picker in React

const displayYearOnly = (date) => { const year = date.getFullYear(); console.log(year); }; return ( <div style={{ marginRight: "20px" }}> <LocalizationProvider dateAdapter={AdapterDayjs}> <DemoContainer componen ...

Enable communication between security groups using AWS CDK

Is there a way to link two security groups together using the AWS CDK? For example, allowing IPv4 traffic ingress via port 443: ec2SecurityGroup.addIngressRule(Peer.anyIpv4(), Port.tcp(443), 'Test rule', false) This is an excerpt from the docu ...

The Magic of jQuery Cross Site Fetch

It seems like this should be simple, but I am having trouble figuring it out... I'm using jQuery to fetch a remote page from a different server, grab the HTML content, and then insert that content into a hidden DIV. However, when I try to do this wit ...

Utilizing TypeScript to define React interfaces

How can I effectively utilize two interfaces for the same object? For instance: interface interfaceOne { id: string color: string } interface interfaceTwo { id: string numb: number } I have an Item component that is designed to receive an item ob ...

Tips for resolving rendering page issues in an express app

My application is a straightforward blog platform that showcases a schema for the title, entry, and date of each blog post. There is also an edit/delete feature that is currently under development. When attempting to use the edit/delete button on a selecte ...

Jquery functionality fails to execute post-Ajax request

Here is the function in question: $(document).ready(function() { $('.post_button, .btn_favorite').click(function() { //Fade in the Popup $('.login_modal_message').fadeIn(500); // Add the mask to body $('body').append(' ...