#48127: npm 2.11.2 fails user prefix build ----------------------+-------------------------------- Reporter: mtb19@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: npm | ----------------------+-------------------------------- Comment (by ryandesign@…): On my normal root MacPorts installation, I get: {{{ npm WARN cannot run in wd npm@2.11.3 node bin/npm-cli.js prune --prefix=. --no-global && rimraf test/*/*/node_modules && make -j4 doc (wd=/opt/local/var/macports/build/_Users_rschmidt_macports_dports_devel_npm/npm/work/package) }}} I don't know why it cannot run the command on my system but does attempt to do so on your system, but I also don't know why the npm build wants to run the command at all. Certainly, it would not be right to try to run the `rimraf` command when that command does not exist. (`rimraf` is a cross- platform implementation of `rm -rf`.) This command line appears in npm's package.json in the `prepublish` key. We're just asking to install npm, not publish anything, so I don't understand why a prepublish step is being run, but maybe I don't know what npm means by "publish". In any case, it sounds like a mistake in the npm build system, which you should report to the developers of npm. -- Ticket URL: <https://trac.macports.org/ticket/48127#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X