Giter Site home page Giter Site logo

Comments (2)

slorello89 avatar slorello89 commented on September 18, 2024

Hi @TimoPromann - thank's for writing in,

The issue is that rm isn't a valid command in the cmd - and since NPM likes to pipe windows shell commands directly through the windows cmd executable in c:\WINDOWS\System32, when it hits that rm -rf dist command it blows up. We're going to look into resolving this to make it more cross-OS friendly, but for the moment I'd recommend trying to do this in WSL, running this in PowerShell seems to encounter the same issue..

If that's not an option, you could replace this line with:

"build": "del dist /Q && webpack --config webpack.config.js",

that will leverage the cmd del command instead of the rm command

from opentok-network-test-js.

TimoPromann avatar TimoPromann commented on September 18, 2024

Hi @slorello89 - thank you for your comment!

The line you suggested worked for building the module in the main directory.

However, when trying to set up the sample app, "npm install", I got another error:

392 verbose stack Error: EPERM: operation not permitted, symlink '..\..' -> 'C:\Users\baj0712\app_dev\opentok-network-test-js\sample\node_modules\opentok-network-test-js'
393 verbose cwd C:\Users\baj0712\app_dev\opentok-network-test-js\sample
394 verbose Windows_NT 10.0.17134
395 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
396 verbose node v15.0.1
397 verbose npm v7.0.3
398 error code EPERM
399 error syscall symlink
400 error path ..\..
401 error dest C:\Users\baj0712\app_dev\opentok-network-test-js\sample\node_modules\opentok-network-test-js
402 error errno -4048
403 error Error: EPERM: operation not permitted, symlink '..\..' -> 'C:\Users\baj0712\app_dev\opentok-network-test-js\sample\node_modules\opentok-network-test-js'
403 error [Error: EPERM: operation not permitted, symlink '..\..' -> 'C:\Users\baj0712\app_dev\opentok-network-test-js\sample\node_modules\opentok-network-test-js'] {​​
403 error errno: -4048,
403 error code: 'EPERM',
403 error syscall: 'symlink',
403 error path: '..\\..',
403 error dest: 'C:\\Users\\baj0712\\app_dev\\opentok-network-test-js\\sample\\node_modules\\opentok-network-test-js'
403 error }​​
404 error The operation was rejected by your operating system.
404 error It's possible that the file was already in use (by a text editor or antivirus),
404 error or that you lack permissions to access it.
404 error
404 error If you believe this might be a permissions issue, please double-check the
404 error permissions of the file and its containing directories, or try running
404 error the command again as root/Administrator.
405 verbose exit -4048

So it seems that within the node modules in the sample app, the folder "opentok-network-test-js" shall be reached. But this seems to fail.

Do you have another suggestion for me how to fix this?

from opentok-network-test-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.